Skip to content

Travis CI for Android #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 7, 2018
Merged
131 changes: 0 additions & 131 deletions .circleci/config.yml

This file was deleted.

27 changes: 21 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
language: android
env:
global:
# These parameters should match the parameters for build tools and sdk versions in the gradle file
- ANDROID_API=26
- EMULATOR_API=21
- ANDROID_BUILD_TOOLS=27.0.0
- ADB_INSTALL_TIMEOUT=5 # minutes
android:
components:
- tools
- platform-tools
- tools
- doc-24
- extra-android-m2repository
- sys-img-armeabi-v7a-android-22
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_API
- android-$EMULATOR_API
- extra-google-m2repository
- extra-android-m2repository # for design library
- addon-google_apis-google-19 # google play services
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API
- sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API
- sys-img-armeabi-v7a-android-21
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
jdk:
- oraclejdk8
before_cache:
Expand All @@ -18,8 +34,7 @@ cache:
before_script:
- echo $TRAVIS_BRANCH
- echo $TRAVIS_TAG
- android list targets
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
Expand Down