Skip to content

Commit 2b1e3de

Browse files
authored
Merge pull request #1337 from buildkite/tat-234-add-tsc-to-elastic-ci-stack
First pass at adding test-splitter to the elastic-ci linux stack.
2 parents 2ce8228 + 4fea309 commit 2b1e3de

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

goss.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ command:
139139
make --version:
140140
exit-status: 0
141141

142+
test-splitter --version:
143+
exit-status: 0
144+
142145
wget --version:
143146
exit-status: 0
144147

packer/linux/buildkite-ami.pkr.hcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ build {
108108
script = "scripts/install-buildkite-agent.sh"
109109
}
110110

111+
provisioner "shell" {
112+
script = "scripts/install-buildkite-test-splitter.sh"
113+
}
114+
111115
provisioner "shell" {
112116
script = "scripts/install-buildkite-utils.sh"
113117
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
case $(uname -m) in
5+
x86_64) ARCH=amd64 ;;
6+
aarch64) ARCH=arm64 ;;
7+
*) ARCH=unknown ;;
8+
esac
9+
10+
TEST_SPLITTER_VERSION=0.7.2
11+
echo "Downloading test-splitter v${TEST_SPLITTER_VERSION}..."
12+
sudo curl -Lsf -o /usr/bin/test-splitter \
13+
"https://github.com/buildkite/test-splitter/releases/download/v0.7.2/test-splitter-linux-${ARCH}"
14+
sudo chmod +x /usr/bin/test-splitter
15+
test-splitter --version

0 commit comments

Comments
 (0)