gitlab-ci: don't fail build if clbin fails

clbin is just for making the logs easy to read, if it fails, the build
should not be marked as failed, especially since the logs are probably
not needed if the rest of the job succeeded.
This commit is contained in:
Hans-Christoph Steiner 2017-09-06 16:59:04 +02:00
parent 5144aedec9
commit d42d83321b

View File

@ -1,6 +1,4 @@
image: registry.gitlab.com/eighthave/ci-images-client:latest image: registry.gitlab.com/fdroid/ci-images-client:latest
# re-enable once gitlab support fixes the repo :-/
#image: registry.gitlab.com/fdroid/ci-images-client:latest
cache: cache:
paths: paths:
@ -28,7 +26,7 @@ test:
- ./gradlew test -PdisablePreDex || { - ./gradlew test -PdisablePreDex || {
for log in app/build/reports/*ests/*/*ml; do for log in app/build/reports/*ests/*/*ml; do
echo "read $log here:"; echo "read $log here:";
cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com; (cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com) || true;
done; done;
export EXITVALUE=1; export EXITVALUE=1;
} }
@ -46,13 +44,13 @@ connected10:
- ./gradlew connectedCheck -PdisablePreDex || { - ./gradlew connectedCheck -PdisablePreDex || {
adb -e logcat -d '*:E'; adb -e logcat -d '*:E';
echo "get the full logcat here:"; echo "get the full logcat here:";
adb -e logcat -d | curl --silent -F 'clbin=<-' https://clbin.com; (adb -e logcat -d | curl --silent -F 'clbin=<-' https://clbin.com) || true;
export EXITVALUE=1; export EXITVALUE=1;
} }
- for log in app/build/reports/*ests/*/*ml - for log in app/build/reports/*ests/*/*ml
app/build/outputs/*results*/connected/*.xml; do app/build/outputs/*results*/connected/*.xml; do
echo "read $log here:"; echo "read $log here:";
cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com; (cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com) || true;
done done
allow_failure: true allow_failure: true
@ -70,13 +68,13 @@ connected24:
- ./gradlew connectedCheck -PdisablePreDex || { - ./gradlew connectedCheck -PdisablePreDex || {
adb -e logcat -d '*:E'; adb -e logcat -d '*:E';
echo "get the full logcat here:"; echo "get the full logcat here:";
adb -e logcat -d | curl --silent -F 'clbin=<-' https://clbin.com; (adb -e logcat -d | curl --silent -F 'clbin=<-' https://clbin.com) || true;
export EXITVALUE=1; export EXITVALUE=1;
} }
- for log in app/build/reports/*ests/*/*ml - for log in app/build/reports/*ests/*/*ml
app/build/outputs/*results*/connected/*.xml; do app/build/outputs/*results*/connected/*.xml; do
echo "read $log here:"; echo "read $log here:";
cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com; (cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com) || true;
done done
- exit $EXITVALUE - exit $EXITVALUE