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.
This commit is contained in:
Daniel Martí 2016-05-12 15:41:46 +01:00
parent 6363e14f10
commit 03da7366c9

View File

@ -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;