From 8ac7d46e0f8c8083a357517b9557ec46a2f4117b Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Tue, 6 Jul 2021 15:56:54 +0200 Subject: [PATCH] Correctly return exit code Signed-off-by: tobiasKaminsky --- scripts/runCombinedTest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/runCombinedTest.sh b/scripts/runCombinedTest.sh index 649535b232..19d06f3574 100755 --- a/scripts/runCombinedTest.sh +++ b/scripts/runCombinedTest.sh @@ -15,7 +15,7 @@ scripts/deleteOutdatedComments.sh "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAM scripts/wait_for_emulator.sh ./gradlew jacocoTestGplayDebugUnitTestReport -status=$? +status=$(( $status | $? )) if [ ! $status -eq 0 ]; then bash scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "master" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN @@ -24,14 +24,14 @@ fi ./gradlew installGplayDebugAndroidTest scripts/wait_for_server.sh "server" ./gradlew createGplayDebugCoverageReport -Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest -status=$? +status=$(( $status | $? )) if [ ! $status -eq 0 ]; then bash scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN fi ./gradlew combinedTestReport -status=$? +status=$(( $status | $? )) curl -o codecov.sh https://codecov.io/bash bash ./codecov.sh -t fc506ba4-33c3-43e4-a760-aada38c24fd5