forked from material-components/material-components-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (40 loc) · 1.56 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
sudo: required
language: generic
dist: trusty
jdk: openjdk9
env:
global:
- ABI="google_apis;armeabi-v7a"
- BUILD_TOOLS_VERSION=28.0.3
- ADB_INSTALL_TIMEOUT=25
- QEMU_AUDIO_DRV=none
- TERM=dumb
matrix:
- EMULATOR_API=16
- EMULATOR_API=19
- EMULATOR_API=23
install:
- export ANDROID_HOME=~/android-sdk-linux
- wget -q "https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip" -O android-sdk-tools.zip
- unzip -q android-sdk-tools.zip -d ${ANDROID_HOME}
- rm android-sdk-tools.zip
- PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools
- yes | sdkmanager --update
- yes | sdkmanager --licenses
- ./gradlew dependencies || true
- sdkmanager "emulator" "tools" "platform-tools" > /dev/null
- sdkmanager --list | head -20
- sdkmanager "build-tools;$BUILD_TOOLS_VERSION" "platforms;android-$28" > /dev/null
- sdkmanager "system-images;android-$EMULATOR_API;$ABI" > /dev/null
- sdkmanager --list | head -15
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
before_script:
- echo no | avdmanager create avd --force -n test -k "system-images;android-$EMULATOR_API;$ABI"
- $ANDROID_HOME/emulator/emulator -avd test -no-window &
- bash android-wait-for-emulator
- adb shell input keyevent 82
script:
- ./gradlew test -PdisablePreDex
- ./gradlew connectedAndroidTest -PdisablePreDex