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