summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-08-14 17:37:25 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-08-15 10:44:53 +0200
commit95ec2341a02f50ddc2013d707818fcf3738c133f (patch)
treec7220fa74dd0bcac258fcd20f19b99bd82b96db7
parent14dcc4a4f961bd6dd1d84ec858e0378cf43afa8b (diff)
downloadgobject-introspection-95ec2341a02f50ddc2013d707818fcf3738c133f.tar.gz
ci: always pass --count to flake8 to get more verbose output
This prints the error count to stderr, and more importantly 0 when everything is OK so we know it did something.
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--.gitlab-ci/test-msys2.sh2
-rw-r--r--Makefile.am2
3 files changed, 4 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d66f6149..e1ccd46f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,7 +19,7 @@ fedora-x86_64-meson-python3:
- meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib
- cd ..
- python3 -m pip install --user flake8
- - python3 -m flake8
+ - python3 -m flake8 --count
except:
- tags
artifacts:
@@ -40,7 +40,7 @@ fedora-x86_64-meson-python2:
- meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib
- cd ..
- python2 -m pip install --user flake8
- - python2 -m flake8
+ - python2 -m flake8 --count
except:
- tags
artifacts:
diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2.sh
index db4b087c..b51d0876 100644
--- a/.gitlab-ci/test-msys2.sh
+++ b/.gitlab-ci/test-msys2.sh
@@ -42,4 +42,4 @@ ninja
meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib
cd ..
-python3 -m flake8
+python3 -m flake8 --count
diff --git a/Makefile.am b/Makefile.am
index 56dac796..44ed1153 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -63,7 +63,7 @@ EXTRA_DIST += \
.flake8
check.quality:
- (cd $(abs_top_srcdir) && $(PYTHON) -m flake8);
+ (cd $(abs_top_srcdir) && $(PYTHON) -m flake8 --count);
# Colin's handy Makefile bits for:
# 1) stuffing tarballs with pre-generated scripts from your workstation