summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2018-02-08 14:41:15 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 14:10:26 +0000
commit6eac2eda9d1c3b156a4a0dece55f2469a88f1e9c (patch)
treeb7f29f0f06e72acbc3ed557d6dd11156834ca0bd
parent388c157008815abca3c4af46c3f732356f61af80 (diff)
downloadbuildstream-6eac2eda9d1c3b156a4a0dece55f2469a88f1e9c.tar.gz
Add pylint to CI
-rw-r--r--.gitlab-ci.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 829bcd4fc..2244de3d7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,8 @@ before_script:
- adduser -m buildstream
- chown -R buildstream:buildstream .
+ - pip3 install pytest-pylint
+
#####################################################
# Prepare stage #
#####################################################
@@ -62,6 +64,13 @@ source_dist:
# Test stage #
#####################################################
+linting:
+ stage: test
+ variables:
+ PYTEST_ADDOPTS: "--color=yes"
+ script:
+ - python3 setup.py test --addopts '--no-cov --pylint --pep8 -m "pep8 or pylint"'
+
# Run premerge commits
#
linux-tests: