Skip to content

Commit

Permalink
Upgrade main CI jobs to Xcode 15.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ncreated committed Jul 26, 2024
1 parent 2a8de6f commit 396c1d9
Showing 1 changed file with 23 additions and 40 deletions.
63 changes: 23 additions & 40 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ stages:
variables:
MAIN_BRANCH: "master"
DEVELOP_BRANCH: "develop"
# Default Xcode and runtime versions for all jobs:
DEFAULT_XCODE: "15.4.0"
DEFAULT_IOS_OS: "17.5"
DEFAULT_TVOS_OS: "17.5"
# Prefilled variables for running a pipeline manually:
# Ref.: https://docs.gitlab.com/ee/ci/pipelines/index.html#prefill-variables-in-manual-pipelines
RELEASE_GIT_TAG:
Expand Down Expand Up @@ -64,7 +68,7 @@ ENV check:
- !reference [.test-pipeline-job, rules]
- !reference [.release-pipeline-job, rules]
script:
- ./tools/runner-setup.sh --datadog-ci # temporary, waiting for AMI
- ./tools/runner-setup.sh --datadog-ci
- make env-check

# ┌──────────────────────────┐
Expand All @@ -86,38 +90,32 @@ Unit Tests (iOS):
- !reference [.test-pipeline-job, rules]
- !reference [.release-pipeline-job, rules]
variables:
XCODE: "15.3.0"
OS: "17.4"
PLATFORM: "iOS Simulator"
DEVICE: "iPhone 15 Pro"
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --os "$OS" # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE"
- make clean repo-setup ENV=ci
- make test-ios-all OS="$OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE"
- make test-ios-all OS="$DEFAULT_IOS_OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE"

Unit Tests (tvOS):
stage: test
rules:
- !reference [.test-pipeline-job, rules]
- !reference [.release-pipeline-job, rules]
variables:
XCODE: "15.3.0"
OS: "17.4"
PLATFORM: "tvOS Simulator"
DEVICE: "Apple TV"
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --tvOS --os "$OS" # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE"
- make clean repo-setup ENV=ci
- make test-tvos-all OS="$OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE"
- make test-tvos-all OS="$DEFAULT_TVOS_OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE"

UI Tests:
stage: ui-test
rules:
- !reference [.test-pipeline-job, rules]
- !reference [.release-pipeline-job, rules]
variables:
XCODE: "15.3.0"
OS: "17.4"
PLATFORM: "iOS Simulator"
DEVICE: "iPhone 15 Pro"
parallel:
Expand All @@ -128,18 +126,16 @@ UI Tests:
- CrashReporting
- NetworkInstrumentation
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --os "$OS" # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE"
- make clean repo-setup ENV=ci
- make ui-test TEST_PLAN="$TEST_PLAN" OS="$OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE"
- make ui-test TEST_PLAN="$TEST_PLAN" OS="$DEFAULT_IOS_OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE"

SR Snapshot Tests:
stage: ui-test
rules:
- !reference [.test-pipeline-job, rules]
- !reference [.release-pipeline-job, rules]
variables:
XCODE: "15.4.0"
OS: "17.5"
PLATFORM: "iOS Simulator"
DEVICE: "iPhone 15"
ARTIFACTS_PATH: "artifacts"
Expand All @@ -149,9 +145,9 @@ SR Snapshot Tests:
expire_in: 1 week
when: on_failure
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --os "$OS" --ssh # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE" --ssh
- make clean repo-setup ENV=ci
- make sr-snapshots-pull sr-snapshot-test OS="$OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE" ARTIFACTS_PATH="$ARTIFACTS_PATH"
- make sr-snapshots-pull sr-snapshot-test OS="$DEFAULT_IOS_OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE" ARTIFACTS_PATH="$ARTIFACTS_PATH"

Tools Tests:
stage: test
Expand Down Expand Up @@ -181,7 +177,7 @@ Smoke Tests (iOS):
PLATFORM: "iOS Simulator"
DEVICE: "iPhone 15 Pro"
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --tvOS --os "$OS" --ssh # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --os "$OS" --ssh # temporary, waiting for AMI
- make clean repo-setup ENV=ci
- make spm-build-ios
- make smoke-test-ios-all OS="$OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE"
Expand All @@ -200,7 +196,7 @@ Smoke Tests (tvOS):
PLATFORM: "tvOS Simulator"
DEVICE: "Apple TV"
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --tvOS --os "$OS" --ssh # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$XCODE" --tvOS --os "$OS" --ssh # temporary, waiting for AMI
- make clean repo-setup ENV=ci
- make spm-build-tvos
- make smoke-test-tvos-all OS="$OS" PLATFORM="$PLATFORM" DEVICE="$DEVICE"
Expand Down Expand Up @@ -260,15 +256,12 @@ E2E Test (upload to s8s):
stage: e2e-test
rules:
- if: '$CI_COMMIT_BRANCH == $DEVELOP_BRANCH'
variables:
XCODE: "15.3.0"
OS: "17.4"
artifacts:
paths:
- artifacts
expire_in: 2 weeks
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --os "$OS" --datadog-ci # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE" --datadog-ci
- make clean
- export DRY_RUN=${DRY_RUN:-0} # default to 0 if not specified
- make e2e-build-upload ARTIFACTS_PATH="artifacts/e2e"
Expand All @@ -284,7 +277,7 @@ Dogfood (Shopist):
when: manual
allow_failure: true
script:
- ./tools/runner-setup.sh --ssh # temporary, waiting for AMI
- ./tools/runner-setup.sh --ssh
- DRY_RUN=0 make dogfood-shopist

Dogfood (Datadog app):
Expand All @@ -294,7 +287,7 @@ Dogfood (Datadog app):
when: manual
allow_failure: true
script:
- ./tools/runner-setup.sh --ssh # temporary, waiting for AMI
- ./tools/runner-setup.sh --ssh
- DRY_RUN=0 make dogfood-datadog-app

# ┌──────────────┐
Expand All @@ -312,16 +305,14 @@ Build Artifacts:
stage: release-build
rules:
- !reference [.release-pipeline-job, rules]
variables:
XCODE: "15.3.0"
artifacts:
paths:
- artifacts
expire_in: 4 weeks
before_script:
- *export_MAKE_release_params
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --tvOS --os "17.4" --ssh # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE" --ssh
- make env-check
- make clean
- make release-build release-validate
Expand All @@ -330,12 +321,10 @@ Publish GH Asset:
stage: release-publish
rules:
- !reference [.release-pipeline-job, rules]
variables:
XCODE: "15.3.0"
before_script:
- *export_MAKE_release_params
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --tvOS --os "17.4" # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE"
- make env-check
- make clean
- make release-publish-github
Expand All @@ -344,12 +333,10 @@ Publish CP podspecs (internal):
stage: release-publish
rules:
- !reference [.release-pipeline-job, rules]
variables:
XCODE: "15.3.0"
before_script:
- *export_MAKE_release_params
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --tvOS --os "17.4" # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE"
- make env-check
- make clean
- make release-publish-internal-podspecs
Expand All @@ -358,12 +345,10 @@ Publish CP podspecs (dependent):
stage: release-publish
rules:
- !reference [.release-pipeline-delayed-job, rules]
variables:
XCODE: "15.3.0"
before_script:
- *export_MAKE_release_params
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --tvOS --os "17.4" # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE"
- make env-check
- make clean
- make release-publish-dependent-podspecs
Expand All @@ -372,12 +357,10 @@ Publish CP podspecs (legacy):
stage: release-publish
rules:
- !reference [.release-pipeline-delayed-job, rules]
variables:
XCODE: "15.3.0"
before_script:
- *export_MAKE_release_params
script:
- ./tools/runner-setup.sh --xcode "$XCODE" --iOS --tvOS --os "17.4" # temporary, waiting for AMI
- ./tools/runner-setup.sh --xcode "$DEFAULT_XCODE"
- make env-check
- make clean
- make release-publish-legacy-podspecs

0 comments on commit 396c1d9

Please sign in to comment.