forked from robolectric/robolectric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.37 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
language: android
jdk:
- oraclejdk7
- oraclejdk8
env:
# to split into multiple Travis builds, uncomment this.
# matrix:
# - APIs=16,17,18,19,20
# - APIs=21,22,23,24
global:
- MALLOC_ARENA_MAX=2 # reduce memory usage, maybe avoid some exit 137's?
- secure: "AnsdYjHIvtLXrDMJmlf5FJhXJOW+aLSvsyXcGFLKse6EcwTSw8XnE4bGv2eSi2YWIwoHHCStIQbI0J02rkmUu9Z5oChxhOyGtCd8U4l1XciH2U7vJOJ/i9Auw5WgLM6x8HxgH6myhNrA9xrB4fcH+8WsDMf+qLqgvJQQjqQZQGM="
- secure: "tKWNiNnT+WPmHNY1MtXTgwId9peXtsKQ5owdOfZqmEQYTSHVdya5Bt3CiK8U829Pa1ZBuF+9mnGufTbw0WfQM5TKlClDn4ciEJzz6ChS2cqO+6trsWy335nppU7pQsDE44Irju+E7Jh4kIjfnB2pWRhI2YAoAUhNyz39PawXsz8="
android:
components:
- tools
- platform-tools
- build-tools-23.0.3
- android-23
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-23
# to install locally, use:
# > android update sdk --no-ui --all --filter <component name>
before_install:
- ./scripts/install-dependencies.rb
script:
- ./gradlew clean assemble install compileTest --info --stacktrace
- ./gradlew test --continue --info --stacktrace # -Drobolectric.enabledSdks=$APIs
after_success:
- ./scripts/deploy-snapshot.sh
sudo: required
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.m2
- $HOME/.gradle