File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ DRONE_PULL_REQUEST=$1
88LOG_USERNAME=$2
99LOG_PASSWORD=$3
1010DRONE_BUILD_NUMBER=$4
11+ _CP=$SECONDS ; checkpoint () { echo " === +$(( $SECONDS - $_CP )) s === $* " ; _CP=$SECONDS ; }
1112
1213function upload_logcat() {
1314 log_filename=" ${DRONE_PULL_REQUEST} _logcat.txt.xz"
@@ -21,14 +22,20 @@ function upload_logcat() {
2122
2223scripts/deleteOldComments.sh " master" " IT" " $DRONE_PULL_REQUEST "
2324
25+ checkpoint " assembleGplayDebugAndroidTest"
2426./gradlew assembleGplayDebugAndroidTest
2527
28+ checkpoint " Waiting for emulator"
2629scripts/wait_for_emulator.sh || exit 1
2730
31+ checkpoint " installGplayDebugAndroidTest"
2832./gradlew installGplayDebugAndroidTest
33+
34+ checkpoint " Waiting for server"
2935scripts/wait_for_server.sh " server" || exit 1
3036
3137# clear logcat and start saving it to file
38+ checkpoint " createGplayDebugCoverageReport"
3239adb logcat -c
3340adb logcat > logcat.txt &
3441LOGCAT_PID=$!
@@ -37,6 +44,7 @@ LOGCAT_PID=$!
3744-Dorg.gradle.jvmargs=" --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.nio.channels=ALL-UNNAMED --add-exports java.base/sun.nio.ch=ALL-UNNAMED"
3845
3946stat=$?
47+ checkpoint " Tests finished (exit code: $stat )"
4048# stop saving logcat
4149kill $LOGCAT_PID
4250
You can’t perform that action at this time.
0 commit comments