Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 7b59129

Browse files
committed
Use a script to run the tests so they have access to the Analytics token
1 parent f0f15e0 commit 7b59129

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.buildkite/build-and-test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash -eu
2+
3+
# We need to use a script as opposed to calling `build_and_test_pod` inline in
4+
# the pipeline via the `command` node because our CI-VM setup doesn't forward
5+
# the environment in that mode.
6+
7+
# See https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16
8+
gem install bundler
9+
10+
build_and_test_pod

.buildkite/pipeline.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ steps:
1212
#################
1313
- label: "🧪 Build and Test"
1414
key: "test"
15-
command: |
16-
# See https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16
17-
gem install bundler
18-
build_and_test_pod
15+
command: .buildkite/build-and-test.sh
1916
env: *common_env
2017
plugins: *common_plugins
2118

0 commit comments

Comments
 (0)