This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
72 lines (51 loc) · 1.7 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Android language used because it installs Android SDK required by DroidMate.
language: android
addons:
apt:
packages:
# Required by org.droidmate.report.plot()
- gnuplot
git:
# To speed up things. By default it is 50.
depth: 1
jdk:
# Most of DroidMate is compiled with Java 8.
- oraclejdk8
android:
components:
# Build tools
# Tools package is required by Travis-CI in order to locate "build-tools",
# Official bugtracker issue: https://github.com/travis-ci/travis-ci/issues/5036
# More info: https://docs.travis-ci.com/user/languages/android/#Overview
- tools
- build-tools-25.0.1
# Packages required by UIAutomator2
- extra-android-support
- extra-android-m2repository
# DroidMate supports Android API 19 (4.4.2).
- android-19
# DroidMate supports Android API 23 (6.0.1).
- android-23
env:
global:
# Required to obtain reference to jarsigner.
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
# Required to obtain handles to aapt and adb.
- ANDROID_HOME=/usr/local/android-sdk
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 integrationBuild