From 03da7366c99109f83c8a475e94b0932b3c8df063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 12 May 2016 15:41:46 +0100 Subject: [PATCH] CI: Don't use the confusing "build" gradle task Be more explicit about what we're running. This also means that we wont run the "read log here" stuff if the build failed, which didn't make any sense. That should only be run if the unit tests fail. --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 65895099f..85cfff9d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,10 +8,11 @@ cache: build: script: - export GRADLE_USER_HOME=$PWD/.gradle + - ./gradlew assemble -PdisablePreDex # always report on lint errors to the build log - sed -i -e 's,textReport .*,textReport true,' app/build.gradle - # 'build' means assemble and check - - ./gradlew build -PdisablePreDex || { + - ./gradlew lint -PdisablePreDex + - ./gradlew test -PdisablePreDex || { for log in app/build/reports/*ests/*/*ml; do echo "read $log here:"; cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com;