commit 6c026784a1d31a55f5431e883c5289bd65141def parent f9684f4fc2a83af36d8de9b14281f308ac8bd42d Author: gstraube <gstraube@mailbox.org> Date: Sun, 6 Aug 2017 20:00:13 +0200 Use avdmanager to create emulator Diffstat:
| M | .travis.yml | | | 12 | ++++++++++-- |
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/.travis.yml b/.travis.yml @@ -16,12 +16,20 @@ before_install: - mkdir "$ANDROID_HOME/licenses" || true - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license" - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license" +install: + - echo yes | sdkmanager "tools" + - echo yes | sdkmanager "platforms;android-25" # Latest platform required by SDK tools + - echo yes | sdkmanager "extras;android;m2repository" + - echo yes | sdkmanager "extras;google;m2repository" + - echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2" + - echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2" + - echo yes | sdkmanager "system-images;android-25;google_apis;x86_64" licenses: - android-sdk-license-.+ - '.+' before_script: - - echo no | android create avd --force -n test -t android-25 --abi google_apis/armeabi-v7a --device 'Nexus 4' - - emulator -avd test -skin 1080x1920 -no-audio -no-window & + - echo no | avdmanager create avd --force -n test --tag google_apis --abi google_apis/x86_64 -k 'system-images;android-25;google_apis;x86_64' --device 'Nexus 5X' + - emulator -avd test -engine classic -skin 1080x1920 -no-audio -no-window & - android-wait-for-emulator - adb shell input keyevent 82 & notifications: