Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit bb4c8b0

Browse files
msfjarviszeapo
authored andcommitted
Rewrite Travis-CI configuration (#436)
* Rewrite Travis-CI configuration - Use OpenJDK - Enable Travis-CI caches - Switch to Travis' own dependency management system Signed-off-by: Harsh Shandilya <[email protected]> * Gradle plugin 3.2.0 uses build-tools-28.0.2 Signed-off-by: Harsh Shandilya <[email protected]>
1 parent 01df437 commit bb4c8b0

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

.travis.yml

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
language: android
2-
jdk: oraclejdk8
32

4-
before_install:
5-
- yes | sdkmanager "platforms;android-27"
3+
jdk:
4+
- openjdk8
65

7-
licenses:
8-
- 'android-sdk-preview-license-.+'
9-
- 'android-sdk-license-.+'
10-
- 'google-gdk-license-.+'
6+
android:
7+
components:
8+
- tools
9+
- build-tools-28.0.2
10+
- android-28
11+
- extra-google-m2repository
12+
- extra-android-m2repository
13+
licenses:
14+
- ".+"
1115

12-
cache:
13-
directories:
14-
- $HOME/.gradle
15-
16-
# ok no tests for now
17-
# - sys-img-x86-android-22
16+
script:
17+
- "./gradlew clean build test lintDebug -Dpre-dex=false"
1818

19-
install:
20-
- echo y | android update sdk -u -a -t tools
21-
- echo y | android update sdk -u -a -t platform-tools
22-
- echo y | android update sdk -u -a -t build-tools-27.0.1
23-
- echo y | android update sdk -u -a -t android-27
24-
- echo y | android update sdk -u -a -t extra-google-m2repository
25-
- echo y | android update sdk -u -a -t extra-android-m2repository
19+
notifications:
20+
email: false
2621

27-
env:
28-
- GRADLE_OPTS="-Xms40m -Xmx3g -XX:MaxPermSize=3g"
22+
sudo: false
2923

30-
script: "./gradlew clean build test lintDebug -Dpre-dex=false"
24+
cache:
25+
directories:
26+
- "$HOME/.m2"
27+
- "$HOME/.gradle"
28+
- "$ANDROID_HOME"

0 commit comments

Comments
 (0)