-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.35 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
language: android
jdk: oraclejdk8
sudo: false
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
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:
- platform-tools
- tools
- build-tools-27.0.0
- android-27
# Additional components
- extra-google-m2repository
- extra-android-m2repository
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
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 -q -p app clean
- ./gradlew -q -p app assembleDebug
- ./gradlew -q -p preferenceshelper clean
- ./gradlew -q -p preferenceshelper assembleRelease
- ./gradlew -q -p preferenceshelper assembleDebug
- ./gradlew -q -p preferenceshelper test
- ./gradlew -q -p preferenceshelper jacocoTestReport
after_success:
- bash <(curl -s https://codecov.io/bash)
after_failure: "cat $TRAVIS_BUILD_DIR/app/build/outputs/lint-results-debug.xml"