summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-08-10 11:19:58 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-08-15 10:43:55 +0200
commit14dcc4a4f961bd6dd1d84ec858e0378cf43afa8b (patch)
tree356698c18599c17062e1f102b04f52558a94efc0 /.gitlab-ci.yml
parentf2be65b417b7179f5490c0735d053bd466f7f317 (diff)
downloadgobject-introspection-14dcc4a4f961bd6dd1d84ec858e0378cf43afa8b.tar.gz
tests: depend on flake8 instead of including pep8/pyflakes
g-i includes an old version of pep8 and pyflakes and uses that during "make check". It (1) doesn't catch all cases newer versions of pycodestyle/pyflakes catch and (2) doesn't test all Python files (3) doesn't work with meson. Instead of updating just remove them and depend on flake8 instead. To run the checks simply run flake8 in the root dir. This also makes it possible to run those checks when using meson and not autotools. To not get test suite failures on flake8 updates move the checks from "make check" to an extra "make check.quality" target.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 41063290..d66f6149 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,6 +17,9 @@ fedora-x86_64-meson-python3:
- cd _build
- ninja
- meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib
+ - cd ..
+ - python3 -m pip install --user flake8
+ - python3 -m flake8
except:
- tags
artifacts:
@@ -35,6 +38,9 @@ fedora-x86_64-meson-python2:
- cd _build
- ninja
- meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib
+ - cd ..
+ - python2 -m pip install --user flake8
+ - python2 -m flake8
except:
- tags
artifacts:
@@ -54,6 +60,8 @@ fedora-x86_64-autotools-python2:
- ./autogen.sh --with-python=python2
- make -j4
- make check
+ - python2 -m pip install --user flake8
+ - make check.quality
artifacts:
when: on_failure
name: "gi-_${CI_COMMIT_REF_NAME}"
@@ -71,6 +79,8 @@ fedora-x86_64-autotools-python3:
- ./autogen.sh --with-python=python3
- make -j4
- make check
+ - python3 -m pip install --user flake8
+ - make check.quality
artifacts:
when: on_failure
name: "gi-_${CI_COMMIT_REF_NAME}"