-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (34 loc) · 1.27 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
# http://docs.travis-ci.com/user/languages/android/
# https://github.com/codepath/android_guides/wiki/Setting-up-Travis-CI
language: android
# It's needed for Gradle 3+
jdk: oraclejdk8
android:
components:
- build-tools-22.0.1
- android-22
before_install:
- chmod +x gradlew # Fix wrong file rights (useful if developing in windows)
- echo "Travis branch is $TRAVIS_BRANCH ($TRAVIS_EVENT_TYPE)"
- echo "Travis branch is in pull request $TRAVIS_PULL_REQUEST (from $TRAVIS_PULL_REQUEST_BRANCH)"
script:
- ./gradlew build connectedCheck
#- ./gradlew clean assembleRelease
after_failure: "cat $TRAVIS_BUILD_DIR/Reedy/build/outputs/lint-results-debug.xml"
# Cache Gradle dependencies
# https://docs.travis-ci.com/user/languages/java/#Caching
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
notifications:
# Gitter chat
webhooks:
urls:
- https://webhooks.gitter.im/e/4285f611e4aca62773fc
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always