Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Apple ID auth E2E tests #64

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 0 additions & 72 deletions e2e/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,6 @@ app:
- BITFALL_APPSTORECONNECT_API_KEY_ISSUER_ID: $BITFALL_APPSTORECONNECT_API_KEY_ISSUER_ID

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

utility_test_swiftpm:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-apps-ios-swiftpm.git
- SAMPLE_APP_BRANCH: codesign-update
- BITRISE_PROJECT_PATH: sample-swiftpm.xcodeproj
- BITRISE_SCHEME: sample swiftpm
- DESTINATION: generic/platform=iOS
- CODE_SIGNING_METHOD: apple-id
- TEAM_ID: 72SA8V3WYL
- CERTIFICATE_URL_LIST: $BITFALL_APPLE_APPLE_CERTIFICATE_URL_LIST
- CERTIFICATE_PASSPHRASE_LIST: $BITFALL_APPLE_APPLE_CERTIFICATE_PASSPHRASE_LIST
after_run:
- _run

manual_test_uitest_api_key_signing:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-apps-fastlane-test.git
Expand Down Expand Up @@ -80,21 +45,6 @@ workflows:
after_run:
- _run

test_uitest_apple_id_signing:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-apps-fastlane-test.git
- SAMPLE_APP_BRANCH: master
- BITRISE_PROJECT_PATH: sample-apps-fastlane-test.xcodeproj
- BITRISE_SCHEME: sample-apps-fastlane-test
- DESTINATION: generic/platform=iOS
- BITRISE_CONFIGURATION: Debug
- CODE_SIGNING_METHOD: apple-id
- TEAM_ID: 72SA8V3WYL
- CERTIFICATE_URL_LIST: $BITFALL_APPLE_APPLE_CERTIFICATE_URL_LIST
- CERTIFICATE_PASSPHRASE_LIST: $BITFALL_APPLE_APPLE_CERTIFICATE_PASSPHRASE_LIST
after_run:
- _run

test_uitest_api_key_override_signing:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-apps-fastlane-test.git
Expand Down Expand Up @@ -320,28 +270,6 @@ workflows:
- xctestrun: $BITRISE_XCTESTRUN_FILE_PATH
- destination: $DESTINATION_RUN_TEST

_expose_xcode_version:
steps:
- script:
title: Expose Xcode major version
inputs:
- content: |-
#!/bin/env bash
set -e
if [[ ! -z "$XCODE_MAJOR_VERSION" ]]; then
echo "Xcode major version already exposed: $XCODE_MAJOR_VERSION"
exit 0
fi
version=`xcodebuild -version`
regex="Xcode ([0-9]*)."
if [[ ! $version =~ $regex ]]; then
echo "Failed to determine Xcode major version"
exit 1
fi
xcode_major_version=${BASH_REMATCH[1]}
echo "Xcode major version: $xcode_major_version"
envman add --key XCODE_MAJOR_VERSION --value $xcode_major_version

_restore_api_envs:
steps:
- script:
Expand Down