Skip to content

Commit 9465b0e

Browse files
committed
Update TravisCI Build File
Update the TravisCI build file: - Make the ANDROID_API_LEVEL and ANDROID_ABI environment variables global - Use the Google ABI x86_64 emulator - Use the latest SDK Platform Tools Par ot fix for #68 Signed-off-by: Jason Rogena <[email protected]>
1 parent 55299b4 commit 9465b0e

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.travis.yml

+18-9
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@ language: android
33
# Setting sudo to required prevents Travis from testing the project in a Docker container.
44
sudo: required
55
jdk: oraclejdk8
6-
dist: precise
6+
dist: xenial
77

88
env:
9-
matrix:
10-
- ANDROID_TARGET=android-26 ANDROID_ABI=google_apis/x86_64
119
global:
1210
# wait up to 10 minutes for adb to connect to emulator
1311
- ADB_INSTALL_TIMEOUT=10
1412
- MALLOC_ARENA_MAX=2
13+
- ANDROID_API_LEVEL=26
14+
- ANDROID_ABI=x86_64
15+
- ANDROID_TAG=google_apis
16+
- QEMU_AUDIO_DRV=none # Remove audio
1517

1618
android:
1719
components:
18-
# tools required
19-
- tools
20+
- tools # to get the new `repository-11.xml`
21+
- platform-tools
22+
- tools # to install Android SDK tools 25.1.x
2023
# The BuildTools version used by your project
2124
- build-tools-26.0.2
2225
# The SDK version used to compile your projects
@@ -29,7 +32,11 @@ android:
2932

3033
# Specify at least one system image,
3134
# if you need to run emulator(s) during your tests
32-
- sys-img-x86_64-google_apis-26
35+
- sys-img-${ANDROID_ABI}-google_apis-${ANDROID_API_LEVEL}
36+
37+
before_install:
38+
- sudo apt-get -qq update
39+
- sudo apt-get install -y pax
3340

3441
addons:
3542
apt_packages:
@@ -38,9 +45,11 @@ addons:
3845
before_script:
3946
# Emulator Management: Create, Start and Wait
4047
- android list sdk --no-ui --all --extended
41-
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
48+
- sudo find / -iname "avdmanager"
49+
- echo no | android create avd --force -n test -t android-$ANDROID_API_LEVEL --abi google_apis/$ANDROID_ABI
50+
# - echo no | avdmanager create avd --force --name test --package "system-images;android-$ANDROID_API_LEVEL;google_apis;$ANDROID_ABI" --abi google_apis/$ANDROID_ABI
4251
- ls -la
43-
- emulator64-x86 -avd test -no-skin -no-audio -no-window &
52+
- emulator -avd test -no-skin -no-audio -no-window &
4453
- timeout 1200 adb wait-for-device
4554
- adb shell input keyevent 82 &
4655

@@ -59,4 +68,4 @@ after_failure:
5968
# Add this once a slack notification channel for Kujaku project app is created
6069
#notifications:
6170
# slack:
62-
# secure: fAiZ4yA7DM6nUKh7nqsCTqZBb03VEAvi5NcRu5mNh5coNn/50XNeZl+qpv7Dw70Ef85Y/k68uc6KwTGVqPXEmVq9Hk3e7lqpBNN8rufvgCYDDGPmywBmU5BhSeykKo0Ee7llM3mRR/EipjIWw1+YvMcS3hCoygf/UlMDDhG0Jo0=
71+
# secure: fAiZ4yA7DM6nUKh7nqsCTqZBb03VEAvi5NcRu5mNh5coNn/50XNeZl+qpv7Dw70Ef85Y/k68uc6KwTGVqPXEmVq9Hk3e7lqpBNN8rufvgCYDDGPmywBmU5BhSeykKo0Ee7llM3mRR/EipjIWw1+YvMcS3hCoygf/UlMDDhG0Jo0=

0 commit comments

Comments
 (0)