Skip to content

Commit

Permalink
Split RN pipeline into iOS and Android parts
Browse files Browse the repository at this point in the history
  • Loading branch information
twometresteve committed Oct 25, 2022
1 parent 739d4c3 commit 34373db
Show file tree
Hide file tree
Showing 3 changed files with 369 additions and 352 deletions.
11 changes: 9 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,19 @@ steps:
commands:
- buildkite-agent pipeline upload .buildkite/node-pipeline.yml

- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE (ANDROID) 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-pipeline.yml
- buildkite-agent pipeline upload .buildkite/react-native-android-pipeline.yml

- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE (IOS) 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-ios-pipeline.yml

- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE CLI STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
if: build.env("BUILD_RN_WITH_LATEST_NATIVES") != "true"
Expand Down
355 changes: 355 additions & 0 deletions .buildkite/react-native-android-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,355 @@
steps:

- group: "React Native (Android) Tests"
steps:
#
# Android builder
#
- label: ":docker: Build RN Android Builder image"
key: "android-builder-image"
timeout_in_minutes: 30
plugins:
- docker-compose#v3.9.0:
build: react-native-android-builder
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
cache-from: react-native-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}
- docker-compose#v3.9.0:
push: react-native-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}

#
# Test fixtures
#
- label: ":android: Build RN 0.60 apk"
key: "rn-0-60-apk"
depends_on:
- "android-builder-image"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.60"
LANG: "en_US.UTF-8"
plugins:
- docker-compose#v3.9.0:
run: react-native-android-builder
artifact_paths:
- build/rn0.60.apk

- label: ":android: Build RN 0.66 apk"
key: "rn-0-66-apk"
depends_on:
- "android-builder-image"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.66"
plugins:
- docker-compose#v3.9.0:
run: react-native-android-builder
artifact_paths:
- build/rn0.66.apk

- label: ":android: Build RN 0.67 apk"
key: "rn-0-67-apk"
depends_on:
- "android-builder-image"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.67"
plugins:
- docker-compose#v3.9.0:
run: react-native-android-builder
artifact_paths:
- build/rn0.67.apk

- label: ":android: Build RN 0.68 Hermes apk"
key: "rn-0-68-hermes-apk"
depends_on:
- "android-builder-image"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.68-hermes"
plugins:
- docker-compose#v3.9.0:
run: react-native-android-builder
artifact_paths:
- build/rn0.68-hermes.apk

- label: ":android: Build RN 0.69 apk"
key: "rn-0-69-apk"
depends_on:
- "android-builder-image"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.69"
plugins:
- docker-compose#v3.9.0:
run: react-native-android-builder
artifact_paths:
- build/rn0.69.apk

- label: ":android: Build react-navigation 0.60 apk"
key: "react-navigation-0-60-apk"
depends_on:
- "android-builder-image"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.60"
JS_SOURCE_DIR: "react_navigation_js"
ARTEFACT_NAME: "r_navigation_0.60"
plugins:
- docker-compose#v3.9.0:
run: react-native-android-builder
artifact_paths:
- build/r_navigation_0.60.apk

- label: ":android: Build react-navigation 0.66 apk"
key: "react-navigation-0-66-apk"
depends_on:
- "android-builder-image"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.66"
JS_SOURCE_DIR: "react_navigation_js"
ARTEFACT_NAME: "r_navigation_0.66"
plugins:
- docker-compose#v3.9.0:
run: react-native-android-builder
artifact_paths:
- build/r_navigation_0.66.apk

- label: ":android: Build react-native-navigation 0.60 apk"
key: "react-native-navigation-0-60-apk"
depends_on:
- "android-builder-image"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.60"
JS_SOURCE_DIR: "react_native_navigation_js"
ARTEFACT_NAME: "r_native_navigation_0.60"
plugins:
- docker-compose#v3.9.0:
run: react-native-android-builder
artifact_paths:
- build/r_native_navigation_0.60.apk

- label: ":android: Build react-native-navigation 0.66 apk"
key: "react-native-navigation-0-66-apk"
depends_on:
- "android-builder-image"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.66"
JS_SOURCE_DIR: "react_native_navigation_js"
ARTEFACT_NAME: "r_native_navigation_0.66"
plugins:
- docker-compose#v3.9.0:
run: react-native-android-builder
artifact_paths:
- build/r_native_navigation_0.66.apk

#
# End-to-end tests
#
- label: ":android: RN 0.60 Android 11 end-to-end tests"
depends_on: "rn-0-60-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/rn0.60.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v3.9.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/rn0.60.apk
- --farm=bs
- --device=ANDROID_11_0
- --a11y-locator
- --fail-fast
env:
SKIP_NAVIGATION_SCENARIOS: "true"
concurrency: 24
concurrency_group: "browserstack-app"
concurrency_method: eager

- label: ":android: RN 0.66 Android 11 end-to-end tests"
depends_on: "rn-0-66-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/rn0.66.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v3.9.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/rn0.66.apk
- --farm=bs
- --device=ANDROID_11_0
- --a11y-locator
- --fail-fast
env:
SKIP_NAVIGATION_SCENARIOS: "true"
concurrency: 24
concurrency_group: "browserstack-app"
concurrency_method: eager

- label: ":android: RN 0.67 Android 11 end-to-end tests"
depends_on: "rn-0-67-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/rn0.67.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v3.9.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/rn0.67.apk
- --farm=bs
- --device=ANDROID_11_0
- --a11y-locator
- --fail-fast
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
concurrency: 24
concurrency_group: "browserstack-app"
concurrency_method: eager

- label: ":android: RN 0.69 Android 11 end-to-end tests"
depends_on: "rn-0-69-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/rn0.69.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v3.9.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/rn0.69.apk
- --farm=bs
- --device=ANDROID_11_0
- --a11y-locator
- --fail-fast
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
concurrency: 24
concurrency_group: "browserstack-app"
concurrency_method: eager

- label: ":android: RN 0.68 (Hermes) Android 12 end-to-end tests"
depends_on: "rn-0-68-hermes-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/rn0.68-hermes.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v3.9.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/rn0.68-hermes.apk
- --farm=bs
- --device=ANDROID_12_0
- --a11y-locator
- --fail-fast
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
concurrency: 24
concurrency_group: "browserstack-app"
concurrency_method: eager

- label: ":android: react-navigation 0.60 Android 11 end-to-end tests"
depends_on: "react-navigation-0-60-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/r_navigation_0.60.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v3.9.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/r_navigation_0.60.apk
- --farm=bs
- --device=ANDROID_11_0
- --a11y-locator
- --fail-fast
- features/navigation.feature
concurrency: 24
concurrency_group: "browserstack-app"
concurrency_method: eager

- label: ":android: react-navigation 0.66 Android 11 end-to-end tests"
depends_on: "react-navigation-0-66-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/r_navigation_0.66.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v3.9.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/r_navigation_0.66.apk
- --farm=bs
- --device=ANDROID_11_0
- --a11y-locator
- --fail-fast
- features/navigation.feature
concurrency: 24
concurrency_group: "browserstack-app"
concurrency_method: eager

- label: ":android: react-native-navigation 0.60 Android 11 end-to-end tests"
depends_on: "react-native-navigation-0-60-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/r_native_navigation_0.60.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v3.9.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/r_native_navigation_0.60.apk
- --farm=bs
- --device=ANDROID_11_0
- --a11y-locator
- --fail-fast
- features/navigation.feature
concurrency: 24
concurrency_group: "browserstack-app"
concurrency_method: eager

- label: ":android: react-native-navigation 0.66 Android 11 end-to-end tests"
depends_on: "react-native-navigation-0-66-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/r_native_navigation_0.66.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v3.9.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/r_native_navigation_0.66.apk
- --farm=bs
- --device=ANDROID_11_0
- --a11y-locator
- --fail-fast
- features/navigation.feature
concurrency: 24
concurrency_group: "browserstack-app"
concurrency_method: eager
Loading

0 comments on commit 34373db

Please sign in to comment.