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