Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
Add e2e test case for App Clip target. (#80)
Browse files Browse the repository at this point in the history
* Add e2e test case for App Clip target.

* Fix App Clip checks.

* Remove duplicated test cases: test_xcode_managed, test_workspace

* Update test_appclip branch to master.
  • Loading branch information
godrei committed Oct 13, 2021
1 parent b04c4ce commit 906b5ad
Showing 1 changed file with 41 additions and 52 deletions.
93 changes: 41 additions & 52 deletions e2e/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,47 @@ app:
- BITRISE_APPLE_TEAM_ID : $BITRISE_APPLE_TEAM_ID

workflows:
test_appclip:
before_run:
- _expose_xcode_version
steps:
- script:
inputs:
- content: |-
#!/bin/env bash
set -e
if [[ ${XCODE_MAJOR_VERSION} -lt 13 ]]; then
echo "This test case requires Xcode >= 13, skipping..."
exit 0
fi
envman add --key XCODE_MAJOR_VERSION_AT_LEAST_13 --value "true"
- bitrise-run:
run_if: '{{enveq "XCODE_MAJOR_VERSION_AT_LEAST_13" "true"}}'
inputs:
- workflow_id: utility_test_appclip
- bitrise_config_path: ./e2e/bitrise.yml

utility_test_appclip:
envs:
- TEST_APP_URL: https://github.com/bitrise-io/Fruta.git
- TEST_APP_BRANCH: master
- BITRISE_PROJECT_PATH: Fruta.xcodeproj
- BITRISE_SCHEME: Fruta iOS
- SIGN_UITEST_TARGET: "no"
- REGISTER_TEST_DEVICES: "yes"
- INSTALL_PODS: "false"
- DISTRIBUTION_TYPE: development
- CONNECTION: "off"
- API_KEY_PATH: $BITFALL_APPSTORECONNECT_API_KEY_URL
- API_ISSUER: $BITFALL_APPSTORECONNECT_API_KEY_ISSUER_ID
after_run:
- _run
- _check_outputs
- _check_xcode_archive
- _run_with_apple_id
- _check_outputs
- _check_xcode_archive

test_xcode13_uitest_signing:
before_run:
- _expose_xcode_version
Expand Down Expand Up @@ -120,28 +161,6 @@ workflows:
- _check_outputs
- _check_xcode_archive

test_xcode_managed:
envs:
- TEST_APP_URL: https://github.com/bitrise-samples/sample-apps-ios-multi-target.git
- TEST_APP_BRANCH: automatic
- BITRISE_PROJECT_PATH: code-sign-test.xcodeproj
- BITRISE_SCHEME: code-sign-test
- BITRISE_CONFIGURATION:
- SIGN_UITEST_TARGET: "no"
- REGISTER_TEST_DEVICES: "yes"
- INSTALL_PODS: "false"
- DISTRIBUTION_TYPE: app-store
- CONNECTION: "api_key"
- API_KEY_PATH:
- API_ISSUER:
after_run:
- _run
- _check_outputs
- _check_xcode_archive
- _run_with_apple_id
- _check_outputs
- _check_xcode_archive

test_entitlements:
envs:
- TEST_APP_URL: https://github.com/bitrise-samples/sample-apps-ios-multi-target.git
Expand All @@ -164,36 +183,6 @@ workflows:
- _check_outputs
- _check_xcode_archive

test_workspace:
steps:
- bitrise-run:
run_if: '{{getenv "BITRISEIO_STACK_ID" | ne "osx-xcode-10.3.x"}}'
inputs:
- workflow_id: utility_test_workspace
- bitrise_config_path: ./e2e/bitrise.yml

utility_test_workspace:
envs:
- TEST_APP_URL: https://github.com/bitrise-samples/ios-cocoapods-minimal-sample.git
- TEST_APP_BRANCH: master
- BITRISE_PROJECT_PATH: iOSMinimalCocoaPodsSample/iOSMinimalCocoaPodsSample.xcworkspace
- BITRISE_SCHEME: iOSMinimalCocoaPodsSample
- BITRISE_CONFIGURATION:
- SIGN_UITEST_TARGET: "no"
- REGISTER_TEST_DEVICES: "yes"
- INSTALL_PODS: "true"
- DISTRIBUTION_TYPE: app-store
- CONNECTION: "automatic"
- API_KEY_PATH:
- API_ISSUER:
after_run:
- _run
- _check_outputs
- _check_xcode_archive
- _run_with_apple_id
- _check_outputs
- _check_xcode_archive

test_tvos:
steps:
- bitrise-run:
Expand Down

0 comments on commit 906b5ad

Please sign in to comment.