forked from konrad-jamrozik/droidmate
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
71 lines (52 loc) · 1.75 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
# 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.
- oraclejdk11
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
- platform-tools
- build-tools-27.0.3 # Packages required by UIAutomator2
- build-tools-28.0.3 # Packages required by UIAutomator2
- extra-android-support
- extra-android-m2repository
# DroidMate supports Android API 23 (6.0.1).
- android-23
- android-25
- android-26
- android-27
- android-28
env:
global:
# 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 clean build run --args='StatementCoverage-enableCoverage=true' --refresh-dependencies