Update CI
This commit is contained in:
+8
-8
@@ -34,32 +34,32 @@ test:
|
|||||||
- python manage.py createdefaultadmin
|
- python manage.py createdefaultadmin
|
||||||
- python manage.py test
|
- python manage.py test
|
||||||
|
|
||||||
lint:pycodestyle:
|
lint:py:
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
stage: lint
|
stage: lint
|
||||||
needs: []
|
needs: ["install"]
|
||||||
script:
|
script:
|
||||||
- pip install pycodestyle
|
- pip install pycodestyle
|
||||||
- pycodestyle --config=setup.cfg --count .
|
- npm run lint:py
|
||||||
|
|
||||||
lint:eslint:
|
lint:js:
|
||||||
image: node:alpine
|
image: node:alpine
|
||||||
stage: lint
|
stage: lint
|
||||||
needs: ["install"]
|
needs: ["install"]
|
||||||
script:
|
script:
|
||||||
- npm run eslint
|
- npm run lint:js
|
||||||
|
|
||||||
lint:remark:
|
lint:md:
|
||||||
image: node:alpine
|
image: node:alpine
|
||||||
stage: lint
|
stage: lint
|
||||||
needs: ["install"]
|
needs: ["install"]
|
||||||
script:
|
script:
|
||||||
- npm run remark
|
- npm run lint:md
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
needs: ["test", "lint:pycodestyle", "lint:eslint", "lint:remark"]
|
needs: ["test", "lint:py", "lint:js", "lint:md"]
|
||||||
services:
|
services:
|
||||||
- docker:stable-dind
|
- docker:stable-dind
|
||||||
only:
|
only:
|
||||||
|
|||||||
Reference in New Issue
Block a user