From d688831cf57fbe4dde16dee0930c3744a135eb3d Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 19 May 2017 23:35:11 +0200 Subject: [PATCH] gitlab-ci: make blank/unused translate output clearer This test now shows the actual blank/unused translations, so it should be a lot clearer why this test is failing. !519 --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index afb30fd94..f0c72f224 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,9 +12,11 @@ before_script: test: script: + - export EXITVALUE=0 - ./tools/check-format-strings.py - ./tools/remove-unused-and-blank-translations.py - - git diff | grep diff && false # there should be no changes + - echo "These are unused or blank translations that should be removed:" + - git --no-pager diff --exit-code || export EXITVALUE=1 - ./gradlew assemble -PdisablePreDex # always report on lint errors to the build log - sed -i -e 's,textReport .*,textReport true,' app/build.gradle @@ -26,8 +28,9 @@ test: echo "read $log here:"; cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com; done; - exit 1; + export EXITVALUE=1; } + - exit $EXITVALUE connected10: variables: