mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add black cicd testing
This commit is contained in:
parent
698594087c
commit
dfd3220482
@ -1,5 +1,5 @@
|
||||
stages:
|
||||
- test
|
||||
- lint
|
||||
- prod-deployment
|
||||
- dev-deployment
|
||||
|
||||
@ -7,8 +7,20 @@ variables:
|
||||
DOCKER_HOST: tcp://docker:2376
|
||||
DOCKER_TLS_CERTDIR: "/certs"
|
||||
|
||||
black:
|
||||
stage: lint
|
||||
image: registry.gitlab.com/pipeline-components/black:latest
|
||||
tags:
|
||||
- 'docker'
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
|
||||
when: never
|
||||
script:
|
||||
- black --check --verbose -- .
|
||||
|
||||
pylint:
|
||||
stage: test
|
||||
stage: lint
|
||||
image: python:3.7-slim
|
||||
tags:
|
||||
- 'docker'
|
||||
|
Loading…
Reference in New Issue
Block a user