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:
parent
6363e14f10
commit
03da7366c9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user