mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
last
This commit is contained in:
parent
1dbf13a466
commit
a6826e2508
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user