Add instrumented tests execution on travis-ci

This commit is contained in:
Shinokuni 2020-03-20 22:36:52 +01:00
parent b4ffbd94a7
commit 2f8d81d4fa
1 changed files with 11 additions and 4 deletions

View File

@ -1,16 +1,23 @@
language: android
android:
components:
- android-28
- build-tools-28.0.3
- android-29
- build-tools-29.0.3
- sys-img-x86-android-29
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
script:
- ./gradlew clean assembleDebug assembleRelease testDebug
- ./gradlew clean assembleDebug assembleRelease testDebug app:connectedAndroidTest
before_install:
- yes | sdkmanager "platforms;android-29"
- yes | sdkmanager "build-tools;29.0.2"
- yes | sdkmanager "build-tools;29.0.3"
before_script:
- echo no | android create avd --force -n test -t android-29 --abi x86_64 -c 100M
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &