-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split react native and CLI pipeline into basic and full stages
- Loading branch information
1 parent
6dbc94d
commit 8497da7
Showing
8 changed files
with
979 additions
and
902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
steps: | ||
- block: 'Trigger a full build' | ||
key: 'trigger-full-build' | ||
|
||
- label: 'Upload the full test pipeline' | ||
depends_on: 'trigger-full-build' | ||
command: buildkite-agent pipeline upload .buildkite/pipeline.full.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
steps: | ||
|
||
# | ||
# Upload full React Native pipelines | ||
# | ||
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: FULL REACT NATIVE (ANDROID) STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" | ||
commands: | ||
- buildkite-agent pipeline upload .buildkite/react-native-android-pipeline.full.yml | ||
|
||
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: FULL REACT NATIVE (IOS) STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" | ||
commands: | ||
- buildkite-agent pipeline upload .buildkite/react-native-ios-pipeline.full.yml | ||
|
||
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE CLI STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" | ||
depends_on: | ||
- "publish-js" | ||
- "android-builder-base" | ||
commands: | ||
- buildkite-agent pipeline upload .buildkite/react-native-cli-pipeline.yml | ||
|
||
# | ||
# Trigger Expo pipelines | ||
# | ||
- label: "@bugsnag/expo latest" | ||
depends_on: "publish-js" | ||
trigger: "bugsnag-expo" | ||
build: | ||
# don't specify 'branch' here so we build the default branch in the expo | ||
# repo, which should be the most up-to-date @bugsnag/expo version | ||
env: | ||
BUGSNAG_JS_BRANCH: "${BUILDKITE_BRANCH}" | ||
BUGSNAG_JS_COMMIT: "${BUILDKITE_COMMIT}" | ||
# a branch name that's safe to use as a docker cache identifier | ||
BUGSNAG_JS_CACHE_SAFE_BRANCH_NAME: "${BRANCH_NAME}" | ||
|
||
- label: "@bugsnag/expo v48/next" | ||
depends_on: "publish-js" | ||
trigger: "bugsnag-expo" | ||
build: | ||
branch: "v48/next" | ||
env: | ||
BUGSNAG_JS_BRANCH: "${BUILDKITE_BRANCH}" | ||
BUGSNAG_JS_COMMIT: "${BUILDKITE_COMMIT}" | ||
# a branch name that's safe to use as a docker cache identifier | ||
BUGSNAG_JS_CACHE_SAFE_BRANCH_NAME: "${BRANCH_NAME}" | ||
|
||
- label: "@bugsnag/expo v47/next" | ||
depends_on: "publish-js" | ||
trigger: "bugsnag-expo" | ||
build: | ||
branch: "v47/next" | ||
env: | ||
BUGSNAG_JS_BRANCH: "${BUILDKITE_BRANCH}" | ||
BUGSNAG_JS_COMMIT: "${BUILDKITE_COMMIT}" | ||
# a branch name that's safe to use as a docker cache identifier | ||
BUGSNAG_JS_CACHE_SAFE_BRANCH_NAME: "${BRANCH_NAME}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [[ "$BUILDKITE_MESSAGE" == *"[full ci]"* || | ||
"$BUILDKITE_BRANCH" == "next" || | ||
"$BUILDKITE_BRANCH" == "main" || | ||
"$BUILDKITE_PULL_REQUEST_BASE_BRANCH" == "main" ]]; then | ||
echo "Running full build" | ||
buildkite-agent pipeline upload .buildkite/pipeline.full.yml | ||
else | ||
# Basic build, but allow a full build to be triggered | ||
echo "Running basic build" | ||
buildkite-agent pipeline upload .buildkite/block.full.yml | ||
fi |
Oops, something went wrong.