Skip to content

Instantly share code, notes, and snippets.

@yawillianpsb
Last active May 23, 2021 15:12
Show Gist options
  • Save yawillianpsb/e8f6558d32264dc049fa114cc448070c to your computer and use it in GitHub Desktop.
Save yawillianpsb/e8f6558d32264dc049fa114cc448070c to your computer and use it in GitHub Desktop.
5 stages, 8 jobs
stages:
- test_stage1
- test_stage2
- test_stage3
- test_stage4
- test_stage5
.base_job:
tags:
- ios_tests
before_script:
- echo "begin"
script:
- echo "Hello world"
after_script:
- echo "end"
test_job1:
stage: test_stage1
extends: .base_job
script:
- echo "(10.0%) covered"
- exit 0
- echo "Hello world"
test_job2:
stage: test_stage1
extends: .base_job
script:
- echo "(0.0%) covered"
- echo "Hello world"
test_job3:
stage: test_stage2
extends: .base_job
script:
- exit 1
allow_failure: true
test_job4:
stage: test_stage3
extends: .base_job
script:
- echo "(100.0%) covered"
- echo "Hello world"
test_job5:
stage: test_stage3
extends: .base_job
script:
- echo "(100.0%) covered"
- exit 1
test_job6:
stage: test_stage3
extends: .base_job
test_job7:
stage: test_stage4
extends: .base_job
test_job8:
stage: test_stage5
extends: .base_job
when: on_failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment