Skip to content

Commit

Permalink
DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Sep 6, 2023
1 parent a2e16f3 commit a49328e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ x-common-params:
- 'AWS_SECRET_KEY'
- &xcode_agent_env
IMAGE_ID: xcode-14.3.1
- &is_branch_for_full_ui_tests
build.branch !~ /^mokagio\//
- &is_branch_for_quick_ui_tests
build.branch != /^mokagio\//

steps:
- label: ':saucelabs: iOS Build and SauceLabs'
Expand Down Expand Up @@ -61,14 +65,14 @@ steps:
# See https://buildkite.com/automattic/gutenberg-mobile/builds/7133
depends_on: ios-build-and-saucelabs
# Show on branches other than trunk, release/*, and dependabot/submodules
if: build.branch !~ /^mokagio\//
if: *is_branch_for_quick_ui_tests

- label: Test iOS on Device – Full iPhone
command: .buildkite/test-ios.sh
depends_on:
- ios-build-and-saucelabs
- run-full-ui-test
if: build.branch !~ /^mokagio\//
if: *is_branch_for_quick_ui_tests
plugins:
- automattic/a8c-ci-toolkit#2.18.2
- *git-cache-plugin
Expand All @@ -83,7 +87,7 @@ steps:
command: .buildkite/test-ios.sh
depends_on:
- ios-build-and-saucelabs
if: build.branch =~ /^mokagio\//
if: *is_branch_for_full_ui_tests
plugins:
- automattic/a8c-ci-toolkit#2.18.2
- *git-cache-plugin
Expand All @@ -99,7 +103,7 @@ steps:
depends_on:
- ios-build-and-saucelabs
- run-full-ui-test
if: build.branch !~ /^mokagio\//
if: *is_branch_for_quick_ui_tests
plugins:
- automattic/a8c-ci-toolkit#2.18.2
- *git-cache-plugin
Expand All @@ -114,7 +118,7 @@ steps:
command: .buildkite/test-ios.sh --ipad
depends_on:
- ios-build-and-saucelabs
if: build.branch =~ /^mokagio\//
if: *is_branch_for_full_ui_tests
plugins:
- automattic/a8c-ci-toolkit#2.18.2
- *git-cache-plugin
Expand Down

0 comments on commit a49328e

Please sign in to comment.