This commit is contained in:
José Rebelo 2023-09-06 21:59:37 +01:00
parent 1dbf13a466
commit a6826e2508
1 changed files with 18 additions and 10 deletions

View File

@ -1,20 +1,28 @@
steps: steps:
tests: tests:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands: commands: |
- pwd #bump pwd
- exit 1 ./gradlew :app:testBangleDebugUnitTest :app:testMainDebugUnitTest
- 'echo "Pipeline status: $CI_STEP_STATUS"' if [ $? -ne 0 ]; then
# mark pipeline as failed if the tests failed, but linter will still run touch .pipeline_failure
- '[ "$CI_STEP_STATUS" == "success" ] || touch .pipeline_failure' fi
failure: ignore failure: ignore
lint: lint:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands: commands: |
- pwd #bump pwd
- ./gradlew lint ./gradlew lint
- '[ ! -f .pipeline_failure ] || exit 1'
failure_check:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands: |
pwd
if [ -f .pipeline_failure ]; then
echo "One of the previous steps failed, failing the pipeline"
exit 1;
fi
#when: #when:
#repo: Freeyourgadget/Gadgetbridge #repo: Freeyourgadget/Gadgetbridge