@@ -3,20 +3,23 @@ language: android
3
3
# Setting sudo to required prevents Travis from testing the project in a Docker container.
4
4
sudo : required
5
5
jdk : oraclejdk8
6
- dist : precise
6
+ dist : xenial
7
7
8
8
env :
9
- matrix :
10
- - ANDROID_TARGET=android-26 ANDROID_ABI=google_apis/x86_64
11
9
global :
12
10
# wait up to 10 minutes for adb to connect to emulator
13
11
- ADB_INSTALL_TIMEOUT=10
14
12
- 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
15
17
16
18
android :
17
19
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
20
23
# The BuildTools version used by your project
21
24
- build-tools-26.0.2
22
25
# The SDK version used to compile your projects
@@ -29,7 +32,11 @@ android:
29
32
30
33
# Specify at least one system image,
31
34
# 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
33
40
34
41
addons :
35
42
apt_packages :
@@ -38,9 +45,11 @@ addons:
38
45
before_script :
39
46
# Emulator Management: Create, Start and Wait
40
47
- 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
42
51
- ls -la
43
- - emulator64-x86 -avd test -no-skin -no-audio -no-window &
52
+ - emulator -avd test -no-skin -no-audio -no-window &
44
53
- timeout 1200 adb wait-for-device
45
54
- adb shell input keyevent 82 &
46
55
@@ -59,4 +68,4 @@ after_failure:
59
68
# Add this once a slack notification channel for Kujaku project app is created
60
69
# notifications:
61
70
# slack:
62
- # secure: fAiZ4yA7DM6nUKh7nqsCTqZBb03VEAvi5NcRu5mNh5coNn/50XNeZl+qpv7Dw70Ef85Y/k68uc6KwTGVqPXEmVq9Hk3e7lqpBNN8rufvgCYDDGPmywBmU5BhSeykKo0Ee7llM3mRR/EipjIWw1+YvMcS3hCoygf/UlMDDhG0Jo0=
71
+ # secure: fAiZ4yA7DM6nUKh7nqsCTqZBb03VEAvi5NcRu5mNh5coNn/50XNeZl+qpv7Dw70Ef85Y/k68uc6KwTGVqPXEmVq9Hk3e7lqpBNN8rufvgCYDDGPmywBmU5BhSeykKo0Ee7llM3mRR/EipjIWw1+YvMcS3hCoygf/UlMDDhG0Jo0=
0 commit comments