From aab86ae3f884775403c4e0f598ccd091b8a81567 Mon Sep 17 00:00:00 2001 From: Benjamin Orsini Date: Mon, 20 May 2019 19:51:06 +0200 Subject: [PATCH] ci: travis file fix and improvements --- .travis.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9eaa8d4..be9c9f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,25 @@ language: android java: oraclejdk8 -cache: false + +before_cache: + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock + - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ + +cache: + directories: + - $HOME/.gradle/caches/ + - $HOME/.gradle/wrapper/ + - $HOME/.android/build-cache + android: - componentes: + components: - tools - platform-tools - - tools - - build-tools-28.0.3 - android-28 - extra-m2-repository - sys-img-armeabi-v7a-android-28 -before_script: - - mkdir "$ANDROID_HOME/licenses" || true - - echo -e "\nd56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license" - - touch empty.file - - gradle wrapper --gradle-version 4.6 -b empty.file - - rm empty.file script: - ./gradlew assembleDebug