Minor CI changes
This commit is contained in:
+9
-8
@@ -1,11 +1,12 @@
|
|||||||
stages:
|
stages:
|
||||||
- qa
|
- lint
|
||||||
|
- test
|
||||||
- publish
|
- publish
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
stage: qa
|
stage: test
|
||||||
services:
|
services:
|
||||||
- postgres:12
|
- postgres:12
|
||||||
variables:
|
variables:
|
||||||
@@ -21,24 +22,24 @@ test:
|
|||||||
- python manage.py createdefaultadmin
|
- python manage.py createdefaultadmin
|
||||||
- python manage.py test
|
- python manage.py test
|
||||||
|
|
||||||
pycodestyle:
|
lint:pycodestyle:
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
stage: qa
|
stage: lint
|
||||||
script:
|
script:
|
||||||
- pip install pycodestyle
|
- pip install pycodestyle
|
||||||
- pycodestyle --config=setup.cfg --count .
|
- pycodestyle --config=setup.cfg --count .
|
||||||
|
|
||||||
eslint:
|
lint:eslint:
|
||||||
image: node:alpine
|
image: node:alpine
|
||||||
stage: qa
|
stage: lint
|
||||||
before_script:
|
before_script:
|
||||||
- npm install
|
- npm install
|
||||||
script:
|
script:
|
||||||
- npm run eslint
|
- npm run eslint
|
||||||
|
|
||||||
remark:
|
lint:remark:
|
||||||
image: node:alpine
|
image: node:alpine
|
||||||
stage: qa
|
stage: lint
|
||||||
before_script:
|
before_script:
|
||||||
- npm install
|
- npm install
|
||||||
script:
|
script:
|
||||||
|
|||||||
Reference in New Issue
Block a user