CI updates

This commit is contained in:
Aarni Halinen
2020-06-16 17:37:19 +03:00
parent b302681bbf
commit 2d6c474baa
+16 -4
View File
@@ -1,12 +1,24 @@
stages: stages:
- install
- lint - lint
- test - test
- publish - publish
- deploy - deploy
install:
image: node:12
stage: setup
script:
- npm ci
artifacts:
paths:
- node_modules
expire_in: 1 week
test: test:
image: python:3.7 image: python:3.7
stage: test stage: test
needs: []
services: services:
- postgres:12 - postgres:12
variables: variables:
@@ -25,6 +37,7 @@ test:
lint:pycodestyle: lint:pycodestyle:
image: python:3.7 image: python:3.7
stage: lint stage: lint
needs: []
script: script:
- pip install pycodestyle - pip install pycodestyle
- pycodestyle --config=setup.cfg --count . - pycodestyle --config=setup.cfg --count .
@@ -32,22 +45,21 @@ lint:pycodestyle:
lint:eslint: lint:eslint:
image: node:alpine image: node:alpine
stage: lint stage: lint
before_script: needs: ["install"]
- npm install
script: script:
- npm run eslint - npm run eslint
lint:remark: lint:remark:
image: node:alpine image: node:alpine
stage: lint stage: lint
before_script: needs: ["install"]
- npm install
script: script:
- npm run remark - npm run remark
publish: publish:
stage: publish stage: publish
image: docker:stable image: docker:stable
needs: ["test", "lint:pycodestyle", "lint:eslint", "lint:remark"]
services: services:
- docker:stable-dind - docker:stable-dind
only: only: