Commit 4253b8a9 authored by Matthieu's avatar Matthieu

Merge branch 'improveCI' into 'master'

Improve CI

See merge request !233
parents 7981ae86 1028bf0c
......@@ -16,18 +16,17 @@ test:
- echo no | avdmanager create avd --force --name "api-${API_LEVEL}" --abi "${TARGET}/${ARCH}" --package "system-images;android-${API_LEVEL};${TARGET};${ARCH}"
- $ANDROID_HOME/emulator/emulator -avd "api-${API_LEVEL}" -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none &
- chmod +x
- ./gradlew build
- ./
- adb shell settings put global window_animation_scale 0.0
- adb shell settings put global transition_animation_scale 0.0
- adb shell settings put global animator_duration_scale 0.0
- curl -L > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- ./gradlew build connectedCheck jacocoTestReport
- cat app/build/reports/jacoco/jacocoTestReport/html/index.html | grep -o 'Total[^%]*%'
# Report test coverage to Code Climate
- export JACOCO_SOURCE_PATH=app/src/main/java/
- ./cc-test-reporter format-coverage ./app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml --input-type jacoco
- ./cc-test-reporter upload-coverage
- ./app/build/reports/jacoco/jacocoTestReport/
expire_in: 1 week
\ No newline at end of file
......@@ -2,7 +2,7 @@
![Pixeldroid project logo](pixeldroid_logo.png)
Free (as in freedom) Android client for Pixelfed, the federated image sharing platform.
[![Build Status](]( [![Maintainability](]( [![Test Coverage](]( [![Translation status](](
[![Build Status](]( [![Maintainability](]( [![Translation status](](
<a href=><img src="" width="170"></a>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment