mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 07:05:49 +03:00
Correctly return exit code
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
706beabdc9
commit
8ac7d46e0f
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ scripts/deleteOutdatedComments.sh "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAM
|
||||||
|
|
||||||
scripts/wait_for_emulator.sh
|
scripts/wait_for_emulator.sh
|
||||||
./gradlew jacocoTestGplayDebugUnitTestReport
|
./gradlew jacocoTestGplayDebugUnitTestReport
|
||||||
status=$?
|
status=$(( $status | $? ))
|
||||||
|
|
||||||
if [ ! $status -eq 0 ]; then
|
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
|
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
|
./gradlew installGplayDebugAndroidTest
|
||||||
scripts/wait_for_server.sh "server"
|
scripts/wait_for_server.sh "server"
|
||||||
./gradlew createGplayDebugCoverageReport -Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest
|
./gradlew createGplayDebugCoverageReport -Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest
|
||||||
status=$?
|
status=$(( $status | $? ))
|
||||||
|
|
||||||
if [ ! $status -eq 0 ]; then
|
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
|
bash scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./gradlew combinedTestReport
|
./gradlew combinedTestReport
|
||||||
status=$?
|
status=$(( $status | $? ))
|
||||||
|
|
||||||
curl -o codecov.sh https://codecov.io/bash
|
curl -o codecov.sh https://codecov.io/bash
|
||||||
bash ./codecov.sh -t fc506ba4-33c3-43e4-a760-aada38c24fd5
|
bash ./codecov.sh -t fc506ba4-33c3-43e4-a760-aada38c24fd5
|
||||||
|
|
Loading…
Reference in a new issue