diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2019-11-11 16:32:58 +0000 |
---|---|---|
committer | Chandan Singh <chandan@chandansingh.net> | 2019-11-14 21:20:32 +0000 |
commit | a3ee349558f36a220f79665873b36c1b0f990c8e (patch) | |
tree | 89470df6759f07dcc6288d266aad9709daf57b49 | |
parent | 703cfe5357461b4a56f2624aba48ea7b12ce84f6 (diff) | |
download | buildstream-a3ee349558f36a220f79665873b36c1b0f990c8e.tar.gz |
.gitlab-ci.yml: Check code formatting as part of CI
As part of the `lint` CI job, also check code formatting.
-rw-r--r-- | .gitlab-ci.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f87e3c92..00270e8fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -212,6 +212,9 @@ mypy: # Lint separately from testing lint: + # We can't use the default debian:9 based image here since that comes with + # Python 3.5, and Black requires Python >= 3.6. + image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:30-master-93453213 stage: test before_script: @@ -219,7 +222,7 @@ lint: - python3 --version script: - - tox -e lint + - tox -e format-check,lint except: - schedules |