1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 07:01:33 +02:00
Gadgetbridge/.woodpecker/run_tests.yml
José Rebelo 73952f2e8f fix
2023-09-06 21:50:33 +01:00

27 lines
711 B
YAML

steps:
tests:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands:
- pwd #bump
- ./gradlew :app:testBangleDebugUnitTest :app:testMainDebugUnitTest
# mark pipeline as failed if the tests failed, but linter will still run
- '[ "$CI_STEP_STATUS" == "success" ] || touch .pipeline_failure'
failure: ignore
lint:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands:
- pwd #bump
- ./gradlew lint
- '[ ! -f .pipeline_failure ] || exit 1'
#when:
#repo: Freeyourgadget/Gadgetbridge
#branch: master
#this doesn't work yet:
#https://github.com/woodpecker-ci/woodpecker/issues/687
when:
event:
exclude: cron