Merge pull request #7788 from nextcloud/coverageReport

Upload coverage report even if combindedTestReport fails
This commit is contained in:
Tobias Kaminsky 2021-01-18 12:48:02 +01:00 committed by GitHub
commit 6744ed4fc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View file

@ -110,9 +110,8 @@ steps:
- ./gradlew installGplayDebugAndroidTest
- scripts/wait_for_server.sh "server"
- ./gradlew createGplayDebugCoverageReport -Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest && scripts/deleteOutdatedComments.sh "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
- ./gradlew combinedTestReport
- curl -o codecov.sh https://codecov.io/bash
- bash ./codecov.sh -t fc506ba4-33c3-43e4-a760-aada38c24fd5
- scripts/runCombinedTest.sh
- name: notify
image: drillster/drone-email
settings:

9
scripts/runCombinedTest.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
./gradlew combinedTestReport
status=$?
curl -o codecov.sh https://codecov.io/bash
bash ./codecov.sh -t fc506ba4-33c3-43e4-a760-aada38c24fd5
exit $status