Skip to content

Commit

Permalink
Change CI checkout approach for faster repo setup (#6719)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio authored Mar 14, 2024
2 parents 73cd061 + d231e5a commit e5f321b
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ x-common-params:
- 'WP_CLI_ALLOW_ROOT=true'
# Increase max available memory for node
- 'NODE_OPTIONS="--max-old-space-size=4096"'
- &git-cache-plugin
automattic/git-s3-cache#1.1.4:
# Ensure these settings match what's defined in cache-builder.yml
bucket: a8c-repo-mirrors
repo: automattic/gutenberg-mobile/
- &git-partial-clone-plugin
automattic/git-partial-clone#0.1.0
- &publish-android-artifacts-docker-container
docker#v3.8.0:
image: 'public.ecr.aws/automattic/android-build-image:v1.3.0'
Expand Down Expand Up @@ -41,8 +38,8 @@ steps:
key: lint
plugins:
- *ci_toolkit_plugin
- *git-partial-clone-plugin
- *nvm_plugin
- *git-cache-plugin
agents:
queue: android
command: .buildkite/commands/lint.sh
Expand All @@ -53,9 +50,9 @@ steps:
- label: Android Unit Tests
key: android-unit-tests
plugins:
- *git-partial-clone-plugin
- *nvm_plugin
- *ci_toolkit_plugin
- *git-cache-plugin
agents:
queue: android
command: .buildkite/commands/unit-tests-android.sh
Expand All @@ -73,7 +70,7 @@ steps:
plugins:
- *nvm_plugin
- *ci_toolkit_plugin
- *git-cache-plugin
- *git-partial-clone-plugin
agents:
queue: android
command: .buildkite/commands/unit-tests-ios.sh
Expand All @@ -95,7 +92,7 @@ steps:
./gradlew testDebug
plugins:
- *ci_toolkit_plugin
- *git-cache-plugin
- *git-partial-clone-plugin
- *nvm_plugin
agents:
queue: android
Expand All @@ -109,7 +106,7 @@ steps:
./gradlew test
plugins:
- *ci_toolkit_plugin
- *git-cache-plugin
- *git-partial-clone-plugin
- *nvm_plugin
agents:
queue: android
Expand All @@ -124,7 +121,7 @@ steps:
- *gb-mobile-docker-container
# - *ci_toolkit_plugin # unused?
# - *nvm_plugin
- *git-cache-plugin
- *git-partial-clone-plugin
command: |
source /root/.bashrc
Expand Down Expand Up @@ -160,7 +157,7 @@ steps:
- label: "Build Android RN Aztec & Publish to S3"
key: "publish-react-native-aztec-android"
plugins:
- *git-cache-plugin
- *git-partial-clone-plugin
- *publish-android-artifacts-docker-container
command: .buildkite/commands/publish-react-native-aztec-android-artifacts.sh

Expand All @@ -169,7 +166,7 @@ steps:
- "js-bundles"
- "publish-react-native-aztec-android"
plugins:
- *git-cache-plugin
- *git-partial-clone-plugin
- *publish-android-artifacts-docker-container
command: .buildkite/commands/publish-react-native-bridge-android-artifacts.sh

Expand All @@ -181,7 +178,6 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
agents:
queue: mac
env: *xcode_agent_env
Expand All @@ -192,7 +188,6 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
artifact_paths:
- ./gutenberg/packages/react-native-editor/ios/GutenbergDemo.app.zip
agents:
Expand All @@ -205,7 +200,6 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
artifact_paths:
- reports/test-results/ios-test-results.xml
agents:
Expand All @@ -220,7 +214,7 @@ steps:
command: .buildkite/commands/build-android.sh
plugins:
- *ci_toolkit_plugin
- *git-cache-plugin
- *git-partial-clone-plugin
- *nvm_plugin
agents:
queue: android
Expand All @@ -231,7 +225,7 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
- *git-partial-clone-plugin
agents:
queue: android
artifact_paths:
Expand Down Expand Up @@ -259,7 +253,6 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
artifact_paths:
- reports/test-results/ios-test-results.xml
agents:
Expand All @@ -276,7 +269,6 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
artifact_paths:
- reports/test-results/ios-test-results.xml
agents:
Expand All @@ -293,7 +285,6 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
artifact_paths:
- reports/test-results/ios-test-results.xml
agents:
Expand All @@ -309,7 +300,6 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
artifact_paths:
- reports/test-results/ios-test-results.xml
agents:
Expand All @@ -326,7 +316,7 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
- *git-partial-clone-plugin
agents:
queue: android
artifact_paths:
Expand All @@ -343,7 +333,7 @@ steps:
plugins:
- *ci_toolkit_plugin
- *nvm_plugin
- *git-cache-plugin
- *git-partial-clone-plugin
agents:
queue: android
artifact_paths:
Expand Down

0 comments on commit e5f321b

Please sign in to comment.