Skip to content

Commit

Permalink
Cut down version of pipeline for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Sep 4, 2023
1 parent af62b01 commit e06c3ba
Showing 1 changed file with 103 additions and 103 deletions.
206 changes: 103 additions & 103 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
steps:

#
# License audit
#
- label: ":copyright: License Audit"
timeout_in_minutes: 20
agents:
queue: opensource-arm-mac-cocoa-12
env:
DEVELOPER_DIR: /Applications/Xcode13.4.app
command: scripts/license_finder.sh
# #
# # License audit
# #
# - label: ":copyright: License Audit"
# timeout_in_minutes: 20
# agents:
# queue: opensource-arm-mac-cocoa-12
# env:
# DEVELOPER_DIR: /Applications/Xcode13.4.app
# command: scripts/license_finder.sh

#
# Android builder base - used by React Native and React Native CLI
#
- label: ":docker: Build Android Builder base image"
key: "android-builder-base"
timeout_in_minutes: 30
plugins:
- docker-compose#v4.12.0:
build: android-builder-base
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
cache-from: android-builder-base:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base
- docker-compose#v4.12.0:
push: android-builder-base:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base
# #
# # Android builder base - used by React Native and React Native CLI
# #
# - label: ":docker: Build Android Builder base image"
# key: "android-builder-base"
# timeout_in_minutes: 30
# plugins:
# - docker-compose#v4.12.0:
# build: android-builder-base
# image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
# cache-from: android-builder-base:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base
# - docker-compose#v4.12.0:
# push: android-builder-base:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base

#
# Publish/package notifier
Expand All @@ -36,103 +36,103 @@ steps:
run: minimal-packager
artifact_paths: min_packages.tar

- label: ":docker: Build and publish JS packages"
key: "publish-js"
timeout_in_minutes: 30
plugins:
- docker-compose#v4.12.0:
build: publisher
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
# - label: ":docker: Build and publish JS packages"
# key: "publish-js"
# timeout_in_minutes: 30
# plugins:
# - docker-compose#v4.12.0:
# build: publisher
# image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js

- label: ":aws-lambda: AWS Lambda tests"
timeout_in_minutes: 35
agents:
queue: "opensource-mac-cocoa-10.15"
commands:
# force the NPM registry as the default on CI is artifactory, which can't
# currently install from our lockfile
- npm ci --registry https://registry.npmjs.org
- cd test/aws-lambda
- bundle install
- bundle exec maze-runner
# - label: ":aws-lambda: AWS Lambda tests"
# timeout_in_minutes: 35
# agents:
# queue: "opensource-mac-cocoa-10.15"
# commands:
# # force the NPM registry as the default on CI is artifactory, which can't
# # currently install from our lockfile
# - npm ci --registry https://registry.npmjs.org
# - cd test/aws-lambda
# - bundle install
# - bundle exec maze-runner

#
# Core tests and checks
#
- label: ":docker: Build CI image"
key: "ci-image"
depends_on: "package-js"
timeout_in_minutes: 20
plugins:
- artifacts#v1.5.0:
download: min_packages.tar
- docker-compose#v4.12.0:
build:
- ci
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
cache-from:
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME}
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base
- docker-compose#v4.12.0:
push:
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME}
- ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base
# - label: ":docker: Build CI image"
# key: "ci-image"
# depends_on: "package-js"
# timeout_in_minutes: 20
# plugins:
# - artifacts#v1.5.0:
# download: min_packages.tar
# - docker-compose#v4.12.0:
# build:
# - ci
# image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
# cache-from:
# - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME}
# - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base
# - docker-compose#v4.12.0:
# push:
# - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME}
# - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base

- label: "Lint"
depends_on: "ci-image"
timeout_in_minutes: 10
plugins:
docker-compose#v4.12.0:
run: ci
command: "npm run test:lint"
# - label: "Lint"
# depends_on: "ci-image"
# timeout_in_minutes: 10
# plugins:
# docker-compose#v4.12.0:
# run: ci
# command: "npm run test:lint"

- label: "Unit tests"
depends_on: "ci-image"
timeout_in_minutes: 10
plugins:
docker-compose#v4.12.0:
run: ci
command: "npm run test:unit"
# - label: "Unit tests"
# depends_on: "ci-image"
# timeout_in_minutes: 10
# plugins:
# docker-compose#v4.12.0:
# run: ci
# command: "npm run test:unit"

- label: "Type checks/tests"
depends_on: "ci-image"
timeout_in_minutes: 10
plugins:
docker-compose#v4.12.0:
run: ci
command: "npm run test:types"
# - label: "Type checks/tests"
# depends_on: "ci-image"
# timeout_in_minutes: 10
# plugins:
# docker-compose#v4.12.0:
# run: ci
# command: "npm run test:types"

- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: BROWSER STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on: "package-js"
commands:
- buildkite-agent pipeline upload .buildkite/basic/browser-pipeline.yml
# - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: BROWSER STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
# depends_on: "package-js"
# commands:
# - buildkite-agent pipeline upload .buildkite/basic/browser-pipeline.yml

- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: ELECTRON STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
skip: Skipped pending PLAT-10345
commands:
- buildkite-agent pipeline upload .buildkite/basic/electron-pipeline.yml
# - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: ELECTRON STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
# skip: Skipped pending PLAT-10345
# commands:
# - buildkite-agent pipeline upload .buildkite/basic/electron-pipeline.yml

- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: NODE STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on: "package-js"
commands:
- buildkite-agent pipeline upload .buildkite/basic/node-pipeline.yml

- 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/basic/react-native-android-pipeline.yml
# - 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/basic/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"
commands:
- buildkite-agent pipeline upload .buildkite/basic/react-native-ios-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"
# commands:
# - buildkite-agent pipeline upload .buildkite/basic/react-native-ios-pipeline.yml

#
# Conditionally trigger full pipeline
#
- label: 'Conditionally trigger full set of tests'
timeout_in_minutes: 30
command: sh -c .buildkite/pipeline_trigger.sh
# #
# - label: 'Conditionally trigger full set of tests'
# timeout_in_minutes: 30
# command: sh -c .buildkite/pipeline_trigger.sh

0 comments on commit e06c3ba

Please sign in to comment.