|
|
|
@ -38,18 +38,18 @@ assembleDebug: |
|
|
|
paths: |
|
|
|
paths: |
|
|
|
- app/build/outputs/ |
|
|
|
- app/build/outputs/ |
|
|
|
|
|
|
|
|
|
|
|
instrumentation_tests: |
|
|
|
instrumentationTests: |
|
|
|
stage: test |
|
|
|
stage: test |
|
|
|
script: |
|
|
|
script: |
|
|
|
- emulator -avd testAVD -no-audio -no-window & |
|
|
|
- wget --quiet --output-document=android-wait-for-emulator https://raw.githubusercontent.com/travis-ci/travis-cookbooks/0f497eb71291b52a703143c5cd63a217c8766dc9/community-cookbooks/android-sdk/files/default/android-wait-for-emulator |
|
|
|
- ./ci/android-wait-for-emulator.sh |
|
|
|
- chmod +x android-wait-for-emulator |
|
|
|
- adb devices |
|
|
|
- echo y | ${ANDROID_HOME}/tools/bin/sdkmanager "system-images;android-${ANDROID_COMPILE_SDK};google_apis_playstore;x86" |
|
|
|
- adb shell settings put global window_animation_scale 0 & |
|
|
|
- echo y | ${ANDROID_HOME}/tools/bin/sdkmanager --update |
|
|
|
- adb shell settings put global transition_animation_scale 0 & |
|
|
|
- echo no | ${ANDROID_HOME}/tools/bin/avdmanager create avd -k "system-images;android-${ANDROID_COMPILE_SDK};google_apis_playstore;x86" -n test |
|
|
|
- adb shell settings put global animator_duration_scale 0 & |
|
|
|
- ${ANDROID_HOME}/tools/emulator -avd test -no-window -no-audio |
|
|
|
- adb shell input keyevent 82 & |
|
|
|
- ./android-wait-for-emulator |
|
|
|
- ./gradlew connectedAndroidTest |
|
|
|
- adb shell input keyevent 82 |
|
|
|
- ./ci/stop-emulators.sh |
|
|
|
- ./gradlew cAT |
|
|
|
artifacts: |
|
|
|
artifacts: |
|
|
|
name: "reports_${CI_PROJECT_NAME}_${CI_BUILD_REF_NAME}" |
|
|
|
name: "reports_${CI_PROJECT_NAME}_${CI_BUILD_REF_NAME}" |
|
|
|
when: on_failure |
|
|
|
when: on_failure |
|
|
|
|