Skip to content

Commit 3e942e0

Browse files
Travis CI for Android (#215)
* try getting android travis to build * switch to emulator api 21 * add license * use build tools specific version * accept license * add install * update travis build * remove before install * remove install * build tools and api need to match gradle * remove circleci, got travis going by making sure we use the same build tools and sdk defined in our gradle file * remove unused calls
1 parent ba41498 commit 3e942e0

File tree

2 files changed

+21
-137
lines changed

2 files changed

+21
-137
lines changed

.circleci/config.yml

Lines changed: 0 additions & 131 deletions
This file was deleted.

.travis.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
language: android
2+
env:
3+
global:
4+
# These parameters should match the parameters for build tools and sdk versions in the gradle file
5+
- ANDROID_API=26
6+
- EMULATOR_API=21
7+
- ANDROID_BUILD_TOOLS=27.0.0
8+
- ADB_INSTALL_TIMEOUT=5 # minutes
29
android:
310
components:
411
- tools
512
- platform-tools
6-
- tools
7-
- doc-24
8-
- extra-android-m2repository
9-
- sys-img-armeabi-v7a-android-22
13+
- build-tools-$ANDROID_BUILD_TOOLS
14+
- android-$ANDROID_API
15+
- android-$EMULATOR_API
16+
- extra-google-m2repository
17+
- extra-android-m2repository # for design library
18+
- addon-google_apis-google-19 # google play services
19+
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API
20+
- sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API
21+
- sys-img-armeabi-v7a-android-21
22+
licenses:
23+
- android-sdk-preview-license-.+
24+
- android-sdk-license-.+
25+
- google-gdk-license-.+
1026
jdk:
1127
- oraclejdk8
1228
before_cache:
@@ -18,8 +34,7 @@ cache:
1834
before_script:
1935
- echo $TRAVIS_BRANCH
2036
- echo $TRAVIS_TAG
21-
- android list targets
22-
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
37+
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
2338
- emulator -avd test -no-audio -no-window &
2439
- android-wait-for-emulator
2540
- adb shell input keyevent 82 &

0 commit comments

Comments
 (0)