Skip to content

Commit

Permalink
Update build-ios script to use the device data from device-config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Oct 30, 2023
1 parent a8d94a7 commit 892a9da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .buildkite/commands/build-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ echo '--- :ios: Set env var for iOS E2E testing'
set -x
export TEST_RN_PLATFORM=ios
export TEST_ENV=sauce
CONFIG_FILE="$(pwd)/gutenberg/packages/react-native-editor/__device-tests__/helpers/device-config.json"
IOS_DEVICE_NAME=$(jq -r '.ios.server.deviceName' "$CONFIG_FILE")
IOS_PLATFORM_VERSION=$(jq -r '.ios.server.platformVersion' "$CONFIG_FILE")
# Set a destination different from the hardcoded one which only works in the
# older Xcode-setup used by CircleCI
export RN_EDITOR_E2E_IOS_DESTINATION='platform=iOS Simulator,name=iPhone 14,OS=16.4'
export RN_EDITOR_E2E_IOS_DESTINATION="platform=iOS Simulator,name=$IOS_DEVICE_NAME,OS=$IOS_PLATFORM_VERSION"
set +x

echo '--- :react: Build iOS app for E2E testing'
Expand Down

0 comments on commit 892a9da

Please sign in to comment.