-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
36 lines (36 loc) · 1.11 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
language: android
jdk: oraclejdk8
notifications:
email:
env:
matrix:
- ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
- ANDROID_TARGET=android-27 ANDROID_ABI=armeabi-v7a
global:
- ADB_INSTALL_TIMEOUT=10 #Time out to 10 mins
cache:
directories: #Cache all dirs under .gradle folder
- $HOME/.gradle/daemon #Cache daemon logs
- $HOME/.gradle/native #Cache library downloaded from the gradle dependency
- $HOME/.gradle/wrapper #Cache the gradle
android:
update_sdk: true
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- extra-android-support
- extra-google-m2repository
- extra-android-m2repository
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
before_script:
- chmod +x gradlew #Grand permissions
script:
- echo "Travis branch is $TRAVIS_BRANCH"
- echo "Travis branch is in pull request $TRAVIS_PULL+REQUEST"
- ./gradlew clean detektCheck build
after_failure: "cat $TRAVIS_BUILD_DIR/app/build/outputs/lint-results-debug.xml"
before_install:
- yes | sdkmanager "platforms;android-27"