ci: travis file fix and improvements
This commit is contained in:
parent
508386adec
commit
aab86ae3f8
22
.travis.yml
22
.travis.yml
|
@ -1,23 +1,25 @@
|
||||||
language: android
|
language: android
|
||||||
java: oraclejdk8
|
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:
|
android:
|
||||||
componentes:
|
components:
|
||||||
- tools
|
- tools
|
||||||
- platform-tools
|
- platform-tools
|
||||||
- tools
|
|
||||||
|
|
||||||
- build-tools-28.0.3
|
- build-tools-28.0.3
|
||||||
- android-28
|
- android-28
|
||||||
- extra-m2-repository
|
- extra-m2-repository
|
||||||
- sys-img-armeabi-v7a-android-28
|
- 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:
|
script:
|
||||||
- ./gradlew assembleDebug
|
- ./gradlew assembleDebug
|
||||||
|
|
Loading…
Reference in New Issue