Merge branch 'ci-image' into 'master'

CI: Use our docker image, print out test coverage



See merge request !220
This commit is contained in:
Daniel Martí 2016-02-29 21:45:27 +00:00
commit 90e64badf3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,5 @@
image: mvdan/fdroid-ci:latest
before_script:
- apt-get -q update -y
- echo " == Installing packages required by this CI script"
@ -33,5 +35,6 @@ test:
- emulator -force-32bit -avd fcl-test -no-skin -no-audio -no-window &
- ./tools/wait-for-emulator
- adb shell input keyevent 82
- echo " == Running Android tests on the 2.3.7 emulator"
- echo " == Running Android tests"
- 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

View File

@ -152,6 +152,9 @@ android {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled = true
}
}
compileOptions {