
This makes it a lot easier to setup all the testing stuff. Mostly, I'm tired of fighting Android Studio's fragility, so I want to remove as much non-standardness as possible in the hopes of improving that situation. closes #534 https://gitlab.com/fdroid/fdroidclient/issues/534
37 lines
1018 B
YAML
37 lines
1018 B
YAML
image: mvdan/fdroid-ci:20160316
|
|
|
|
cache:
|
|
paths:
|
|
- .gradle/wrapper
|
|
- .gradle/caches
|
|
|
|
gradle:
|
|
script:
|
|
- export GRADLE_USER_HOME=$PWD/.gradle
|
|
- ./gradlew assemble
|
|
# always report on lint errors to the build log
|
|
- sed -i -e 's,textReport .*,textReport true,' app/build.gradle
|
|
- ./gradlew check
|
|
- 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' app/build/reports/coverage/debug/index.html
|
|
|
|
pmd:
|
|
script:
|
|
- export GRADLE_USER_HOME=$PWD/.gradle
|
|
- ./gradlew pmd
|
|
|
|
checkstyle:
|
|
script:
|
|
- export GRADLE_USER_HOME=$PWD/.gradle
|
|
- ./gradlew checkstyle
|
|
|
|
tools:
|
|
script:
|
|
- cd app
|
|
- ./tools/langs-list-check.py
|
|
- ./tools/check-string-format.py
|