runCombinedTest.sh 795 B

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