ci: travis file fix and improvements

This commit is contained in:
Benjamin Orsini 2019-05-20 19:51:06 +02:00
parent 508386adec
commit aab86ae3f8
1 changed files with 12 additions and 10 deletions

View File

@ -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