aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2018-10-14 13:54:13 +0530
committerMohamed Zenadi <zeapo@users.noreply.github.com>2018-10-14 10:24:13 +0200
commitbb4c8b0688c148baa2720478c0ba9ed5164ae680 (patch)
tree8296275518d5f0d777a1ea68905271dcf41cccc6 /.travis.yml
parent01df4371db435fe3b36cf63a8a9670cec6144271 (diff)
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 <harsh@prjkt.io> * Gradle plugin 3.2.0 uses build-tools-28.0.2 Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml44
1 files changed, 21 insertions, 23 deletions
diff --git a/.travis.yml b/.travis.yml
index a8c21951..e7e35caa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,30 +1,28 @@
language: android
-jdk: oraclejdk8
-before_install:
- - yes | sdkmanager "platforms;android-27"
+jdk:
+ - openjdk8
-licenses:
- - 'android-sdk-preview-license-.+'
- - 'android-sdk-license-.+'
- - 'google-gdk-license-.+'
+android:
+ components:
+ - tools
+ - build-tools-28.0.2
+ - android-28
+ - extra-google-m2repository
+ - extra-android-m2repository
+ licenses:
+ - ".+"
-cache:
- directories:
- - $HOME/.gradle
-
- # ok no tests for now
- # - sys-img-x86-android-22
+script:
+ - "./gradlew clean build test lintDebug -Dpre-dex=false"
-install:
- - echo y | android update sdk -u -a -t tools
- - echo y | android update sdk -u -a -t platform-tools
- - echo y | android update sdk -u -a -t build-tools-27.0.1
- - echo y | android update sdk -u -a -t android-27
- - echo y | android update sdk -u -a -t extra-google-m2repository
- - echo y | android update sdk -u -a -t extra-android-m2repository
+notifications:
+ email: false
-env:
- - GRADLE_OPTS="-Xms40m -Xmx3g -XX:MaxPermSize=3g"
+sudo: false
-script: "./gradlew clean build test lintDebug -Dpre-dex=false"
+cache:
+ directories:
+ - "$HOME/.m2"
+ - "$HOME/.gradle"
+ - "$ANDROID_HOME"