-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
53 lines (46 loc) · 1.06 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
language: android
jdk:
- oraclejdk7
- oraclejdk8
android:
components:
# Defaults
- tools
- platform-tools
- build-tools-23.0.2
- android-23
# Extras
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-23
licenses:
- '.+'
# Setup JAVA env for components
before_install:
- export JAVA7_HOME=/usr/lib/jvm/java-7-oracle
- export JAVA8_HOME=/usr/lib/jvm/java-8-oracle
- export JAVA_HOME=$JAVA7_HOME
# Default Gradle Test
script:
- ./gradlew clean assemble || ./gradlew clean assemble
# - ./gradlew build connectedCheck
# Fix Cache
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# Notifications
notifications:
email:
recipients:
on_success: [change]
on_failure: [always]