|
|
|
@ -38,25 +38,6 @@ assembleDebug: |
|
|
|
paths: |
|
|
|
paths: |
|
|
|
- app/build/outputs/ |
|
|
|
- app/build/outputs/ |
|
|
|
|
|
|
|
|
|
|
|
instrumentationTests: |
|
|
|
|
|
|
|
stage: test |
|
|
|
|
|
|
|
script: |
|
|
|
|
|
|
|
- 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 |
|
|
|
|
|
|
|
- chmod +x android-wait-for-emulator |
|
|
|
|
|
|
|
- echo y | ${ANDROID_HOME}/tools/bin/sdkmanager "system-images;android-${ANDROID_COMPILE_SDK};google_apis_playstore;x86" |
|
|
|
|
|
|
|
- echo y | ${ANDROID_HOME}/tools/bin/sdkmanager --update |
|
|
|
|
|
|
|
- echo no | ${ANDROID_HOME}/tools/bin/avdmanager create avd -k "system-images;android-${ANDROID_COMPILE_SDK};google_apis_playstore;x86" -n test |
|
|
|
|
|
|
|
- ${ANDROID_HOME}/tools/emulator -avd test -no-window -no-audio |
|
|
|
|
|
|
|
- ./android-wait-for-emulator |
|
|
|
|
|
|
|
- adb shell input keyevent 82 |
|
|
|
|
|
|
|
- ./gradlew cAT |
|
|
|
|
|
|
|
artifacts: |
|
|
|
|
|
|
|
name: "reports_${CI_PROJECT_NAME}_${CI_BUILD_REF_NAME}" |
|
|
|
|
|
|
|
when: on_failure |
|
|
|
|
|
|
|
expire_in: 4 days |
|
|
|
|
|
|
|
paths: |
|
|
|
|
|
|
|
- app/build/reports/androidTests/connected/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#debugTests: |
|
|
|
#debugTests: |
|
|
|
# stage: test |
|
|
|
# stage: test |
|
|
|
# script: |
|
|
|
# script: |
|
|
|
|