Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions .buildkite/basic/react-native-cli-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ steps:
depends_on: "publish-js"
timeout_in_minutes: 15
agents:
queue: macos-14
queue: macos-14-isolated
env:
JAVA_VERSION: "17"
NODE_VERSION: "18"
Expand All @@ -23,7 +23,7 @@ steps:
commands:
- "cd test/react-native-cli"
- "bundle install"
- "bundle exec maze-runner features/build-app-tests/build-android-app.feature"
- "bundle exec maze-runner --port=$((MAZE_RUNNER_PORT)) features/build-app-tests/build-android-app.feature"
matrix:
- "0.79"
- "0.78"
Expand All @@ -38,7 +38,7 @@ steps:
depends_on: "publish-js"
timeout_in_minutes: 20
agents:
queue: "macos-14"
queue: "macos-14-isolated"
env:
NODE_VERSION: "18"
RN_VERSION: "{{matrix}}"
Expand All @@ -52,7 +52,7 @@ steps:
commands:
- "cd test/react-native-cli"
- "bundle install"
- "bundle exec maze-runner features/build-app-tests/build-ios-app.feature"
- "bundle exec maze-runner --port=$((MAZE_RUNNER_PORT)) features/build-app-tests/build-ios-app.feature"
matrix:
- "0.79"
- "0.78"
Expand Down
11 changes: 7 additions & 4 deletions scripts/init-rn-cli.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/expect -f


# Set infinite timeout to avoid script termination due to delays
set timeout -1

Expand All @@ -8,6 +9,8 @@ set notifier_version [lindex $argv 0]
set rn_version [lindex $argv 1]
set fixture_path [lindex $argv 2]

set MAZE_RUNNER_PORT $env(MAZE_RUNNER_PORT)

# Process React Native version string
set rn_version_cleaned [string map {".expo.ejected" "" "_" "."} [string range $rn_version 2 end]]

Expand All @@ -22,10 +25,10 @@ spawn ./node_modules/.bin/bugsnag-react-native-cli init
# Handle CLI prompts
expect "Do you want to continue anyway?" { send -- "Y\r" }
expect "Are you using Bugsnag on-premise?" { send -- "Y\r" }
expect "What is your Bugsnag notify endpoint?" { send -- "http://bs-local.com:9339/notify\r" }
expect "What is your Bugsnag sessions endpoint?" { send -- "http://bs-local.com:9339/sessions\r" }
expect "What is your Bugsnag upload endpoint?" { send -- "http://localhost:9339\r" }
expect "What is your Bugsnag build endpoint?" { send -- "http://localhost:9339/builds\r" }
expect "What is your Bugsnag notify endpoint?" { send -- "http://bs-local.com:$MAZE_RUNNER_PORT/notify\r" }
expect "What is your Bugsnag sessions endpoint?" { send -- "http://bs-local.com:$MAZE_RUNNER_PORT/sessions\r" }
expect "What is your Bugsnag upload endpoint?" { send -- "http://localhost:$MAZE_RUNNER_PORT\r" }
expect "What is your Bugsnag build endpoint?" { send -- "http://localhost:$MAZE_RUNNER_PORT/builds\r" }
expect "If you want the latest version of @bugsnag/react-native hit enter, otherwise type the version you want" { send -- "$notifier_version\r" }
expect "What is your Bugsnag project API key?" { send -- "1234567890ABCDEF1234567890ABCDEF\r" }
expect "Do you want to install the BugSnag CLI to allow you to upload JavaScript source maps?" { send -- "Y\r" }
Expand Down