Improve CI
This commit is contained in:
parent
7981ae8643
commit
1028bf0cf3
@ -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 android-wait-for-emulator.sh
|
||||
- ./gradlew build
|
||||
- ./android-wait-for-emulator.sh
|
||||
- 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 https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./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
|
||||
artifacts:
|
||||
paths:
|
||||
- ./app/build/reports/jacoco/jacocoTestReport/
|
||||
expire_in: 1 week
|
@ -2,7 +2,7 @@
|
||||

|
||||
Free (as in freedom) Android client for Pixelfed, the federated image sharing platform.
|
||||
|
||||
[](https://gitlab.com/Matttter/PixelDroid/pipelines) [](https://codeclimate.com/github/H-PixelDroid/PixelDroid/maintainability) [](https://codeclimate.com/github/H-PixelDroid/PixelDroid/test_coverage) [](https://weblate.pixeldroid.org/engage/pixeldroid/?utm_source=widget)
|
||||
[](https://gitlab.shinice.net/pixeldroid/PixelDroid/pipelines) [](https://codeclimate.com/github/H-PixelDroid/PixelDroid/maintainability) [](https://weblate.pixeldroid.org/engage/pixeldroid/?utm_source=widget)
|
||||
|
||||
<a href=https://apt.izzysoft.de/fdroid/index/apk/com.h.pixeldroid><img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" width="170"></a>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user