You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:30:15 UTC

[buildstream] 04/08: .gitlab-ci.yml: Check code formatting as part of CI

This is an automated email from the ASF dual-hosted git repository.

root pushed a commit to branch frazer/flake8
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 993a6e9e7c0ac8f37c94415487267715865b32a9
Author: Chandan Singh <cs...@bloomberg.net>
AuthorDate: Mon Nov 11 16:32:58 2019 +0000

    .gitlab-ci.yml: Check code formatting as part of CI
    
    As part of the `lint` CI job, also check code formatting.
---
 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4f87e3c..00270e8 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