
This stores the Android SDK tarball and gradle caches between builds to speed things up. Since the unpacked SDK gets unpacked very time, updating the version is just a matter of changing the variable. Since only the gradle caches are stored, i.e. the jars and gradle binaries, updates there will only add more files to the cache.
24 lines
746 B
YAML
24 lines
746 B
YAML
image: mvdan/fdroid-ci:latest
|
|
|
|
cache:
|
|
paths:
|
|
- .gradle/wrapper
|
|
- .gradle/caches
|
|
|
|
test:
|
|
script:
|
|
- export GRADLE_USER_HOME=$PWD/.gradle
|
|
- cd F-Droid
|
|
- ./tools/langs-list-check.py
|
|
- ./tools/check-string-format.py
|
|
- cd ..
|
|
- ./gradlew build
|
|
- ./gradlew checkstyle
|
|
- ./gradlew pmd
|
|
- echo no | android create avd --force -n fcl-test -t android-10 -b armeabi
|
|
- emulator -force-32bit -avd fcl-test -no-skin -no-audio -no-window &
|
|
- ./tools/wait-for-emulator
|
|
- adb shell input keyevent 82
|
|
- ADB_INSTALL_TIMEOUT=8 ./gradlew connectedCheck || { adb logcat -d '*:W'; exit 1; }
|
|
- sed -n 's/.*"ctr2">\([0-9]*\)%<.*/Coverage - \1.0% covered\n/p' F-Droid/build/reports/coverage/debug/index.html
|