summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2017-07-01 19:28:17 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-01 19:43:49 +0200
commit91a5ec960b4c5374aaee040daaf0ff301167cf53 (patch)
tree6b6993908813bf86cb60aea360c97d9a4889c8d2
parent9c2428616eaa265ab5af3f4fde7cd9dbe6d98876 (diff)
downloadbuildroot-91a5ec960b4c5374aaee040daaf0ff301167cf53.tar.gz
buildroot-91a5ec960b4c5374aaee040daaf0ff301167cf53.zip
.gitlab-ci.yml: simplify (and fix) check-DEVELOPERS
The check-DEVELOPERS test would always fail, because && will return the exit code of the left-hand side if not 0, so it *always* returns 1. But in fact, the test can be simplified quite a lot: we can run getdeveloper directly, without arguments. That should just print 'No action specified', but it will also print any syntax errors it encountered. So we can just 'grep -v' the expected output away; if there is anything more, grep will return 0, but if there is nothing more, it will return 1. So we just need to invert the result. Incidentally, this also fixes the incorrect remaining reference to support/scripts. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--.gitlab-ci.yml.in4
2 files changed, 2 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cc048a0df6..6bd983750d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,9 +36,7 @@ check-gitlab-ci.yml:
check-DEVELOPERS:
script:
- - PYTHONPATH=$PWD/support/scripts
- python -c 'from getdeveloperlib import parse_developers; parse_developers()' |
- grep . && exit 1
+ - ! utils/get-developers | grep -v 'No action specified'
.defconfig: &defconfig
# Running the defconfigs for every push is too much, so limit to
diff --git a/.gitlab-ci.yml.in b/.gitlab-ci.yml.in
index 0b6e634a4b..0855bffb79 100644
--- a/.gitlab-ci.yml.in
+++ b/.gitlab-ci.yml.in
@@ -36,9 +36,7 @@ check-gitlab-ci.yml:
check-DEVELOPERS:
script:
- - PYTHONPATH=$PWD/support/scripts
- python -c 'from getdeveloperlib import parse_developers; parse_developers()' |
- grep . && exit 1
+ - ! utils/get-developers | grep -v 'No action specified'
.defconfig: &defconfig
# Running the defconfigs for every push is too much, so limit to
OpenPOWER on IntegriCloud