forked from robolectric/robolectric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (51 loc) · 1.94 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
language: android
jdk: oraclejdk8
env:
matrix: # split into multiple Travis builds:
- JDK=oraclejdk7 APIs=16,17,18,19,21,22,23 # 20 isn't supported
- JDK=oraclejdk8 APIs=16,17,18,19,21 # 20 isn't supported
- JDK=oraclejdk8 APIs=22,23,24,25,26
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
- jdk_switcher use $JDK
- NO_REBUILD=true ./gradlew test --no-rebuild --continue --info --stacktrace -Drobolectric.enabledSdks=$APIs
- jdk_switcher use oraclejdk8
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
deploy:
provider: s3
access_key_id: AKIAIYSWQCNR2HRSMA3Q
secret_access_key:
secure: XLa8jI7kH7W8nxt60HrFwPvGwALfC5xfiQxamuX3ZONF+YVrE7Fp6Ms0v7Z5I7w8TGNeqSld70hRTZG/k8/eV7wTI+eDcyi1URo3t76OvPV8JxrXgLCtl/yzJgqPuA8RwXZMtcPb0cbEttuPAHyiS3St5Q4Llda9ge20qMJ2yds=
bucket: robolectric
acl: public_read
upload-dir: test-results
local_dir: build/reports/allTests
skip_cleanup: true
on:
all_branches: true