runCombinedTest.sh 834 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. GIT_USERNAME=$1
  3. GIT_TOKEN=$2
  4. DRONE_PULL_REQUEST=$3
  5. LOG_USERNAME=$4
  6. LOG_PASSWORD=$5
  7. DRONE_BUILD_NUMBER=$6
  8. scripts/deleteOldComments.sh "master" "IT" $DRONE_PULL_REQUEST $GIT_TOKEN
  9. ./gradlew assembleGplay
  10. ./gradlew assembleGplayDebug
  11. scripts/wait_for_emulator.sh
  12. ./gradlew installGplayDebugAndroidTest
  13. scripts/wait_for_server.sh "server"
  14. ./gradlew createGplayDebugCoverageReport -Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest
  15. stat=$?
  16. if [ ! $stat -eq 0 ]; then
  17. bash scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "master" "IT" $DRONE_PULL_REQUEST $GIT_TOKEN
  18. fi
  19. curl -Os https://uploader.codecov.io/latest/linux/codecov
  20. chmod +x codecov
  21. ./codecov -t fc506ba4-33c3-43e4-a760-aada38c24fd5
  22. echo "Exit with: " $stat
  23. exit $stat