-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
80 lines (70 loc) · 2.98 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
git:
depth: 1
branches:
only:
- master
jdk: oraclejdk8
language: android
sudo: required
env:
global:
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
- ANDROID_TAG=google_apis
- ANDROID_NDK_REVISION=r17
- ADB_INSTALL_TIMEOUT=5 # minutes
android:
components:
- platform-tools
- tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
# Support library
- extra-android-support
# Latest artifacts in local repository
- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
- sys-img-x86_64-android-$ANDROID_API_LEVEL
#- sys-img-armeabi-v7a-google_apis-$ANDROID_API_LEVEL
#- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
#- sys-img-armeabi-v7a-google_apis-$ANDROID_API_LEVEL
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
- build-tools-.+
before_install:
# By default, we get an older version of libstdc++6 so we need to update it
# http://askubuntu.com/questions/575505/glibcxx-3-4-20-not-found-how-to-fix-this-error
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- sudo apt-get install libstdc++6
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\nd56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/google-gdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
# - echo y | android update sdk --no-ui --all --filter "tools"
# - echo y | android update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS_VERSION},android-${ANDROID_API_LEVEL},extra-android-m2repository
- wget https://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_REVISION}-linux-x86_64.zip -O ndk.zip
- unzip ndk.zip -d . > /dev/null
- export ANDROID_NDK_HOME=`pwd`/android-ndk-${ANDROID_NDK_REVISION}
- export PATH=${PATH}:${ANDROID_NDK_HOME}
- wget https://github.com/Commit451/android-cmake-installer/releases/download/1.1.0/install-cmake.sh
- chmod +x install-cmake.sh
- bash ./install-cmake.sh
- chmod +x gradlew
- ./gradlew dependencies || true
- ./gradlew assembleDebug
# # Emulator Management: Create, Start and Wait
# before_script:
##- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a --tag google_apis #--tag ${ANDROID_TAG}
##- echo y | android update sdk --all -u -t sys-img-armeabi-v7a-android-${ANDROID_API_LEVEL}
# - echo y | android update sdk --all -u -t sys-img-x86_64-android-${ANDROID_API_LEVEL}
# - android list targets
# - echo no | android create avd --force -n test -t android-${ANDROID_API_LEVEL} --abi x86_64
# - emulator -avd test -no-audio -no-window &
# - android-wait-for-emulator
# - adb shell input keyevent 82 &