-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (29 loc) · 976 Bytes
/
.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
# Android language used because it installs Android SDK required by DroidMate.
language: java
git:
# To speed up things. By default it is 50.
depth: 1
jdk:
# Most of DroidMate is compiled with Java 8.
- oraclejdk8
env:
global:
# Required to obtain reference to jarsigner.
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
before_install:
# Change to the directory containing the main build script of DroidMate.
# - cd dev/droidmate
# Allow Gradle build script to execute.
- chmod +x gradlew
before_cache:
# Allow Gradle to use cache.
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
# Cache gradle dirs.
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# Note: Android SDK should not be cached, according to https://docs.travis-ci.com/user/caching/#Things-not-to-cache
script:
# By default, 'android' language uses 'connectedCheck'. Here we replace it with appropriate task.
- ./gradlew build