mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 10:18:59 +03:00
14f7dbb3db
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
39 lines
1.2 KiB
Bash
Executable file
39 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
GIT_USERNAME=$1
|
|
GIT_TOKEN=$2
|
|
DRONE_PULL_REQUEST=$3
|
|
LOG_USERNAME=$4
|
|
LOG_PASSWORD=$5
|
|
DRONE_BUILD_NUMBER=$6
|
|
|
|
scripts/deleteOutdatedComments.sh "master" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
|
scripts/deleteOutdatedComments.sh "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
|
|
|
./gradlew assembleGplay
|
|
./gradlew assembleGplayDebug
|
|
|
|
scripts/wait_for_emulator.sh
|
|
./gradlew jacocoTestGplayDebugUnitTestReport
|
|
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
|
|
fi
|
|
|
|
./gradlew installGplayDebugAndroidTest
|
|
scripts/wait_for_server.sh "server"
|
|
./gradlew createGplayDebugCoverageReport -Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest
|
|
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=$?
|
|
|
|
curl -o codecov.sh https://codecov.io/bash
|
|
bash ./codecov.sh -t fc506ba4-33c3-43e4-a760-aada38c24fd5
|
|
|
|
exit $status
|