Skip to content

Commit 2a8332f

Browse files
committed
Initial stab at buildkite CI config
1 parent e6217b6 commit 2a8332f

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

Diff for: .buildkite/pipeline.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
steps:
2+
- label: ":runner: Launch matrix of jobs"
3+
commands: |
4+
AGENT_OS_AND_ARCH=( linux-x86_64 windows-x86_64 macos-aarch64 )
5+
JULIA_VERSIONS=( 1.6 1.8 1.9 nightly )
6+
JULIA_TEST_COVERAGE=false
7+
8+
for AGENT_OS_AND_ARCH in "$${AGENT_OS_AND_ARCH[@]}"; do
9+
IFS=- read AGENT_OS AGENT_ARCH <<<"$${AGENT_OS_AND_ARCH}"
10+
for JULIA_VERSION in "$${JULIA_VERSIONS[@]}"; do
11+
# Template `runtests.yml` with the values from our matrix
12+
export AGENT_OS AGENT_ARCH JULIA_VERSION JULIA_TEST_COVERAGE
13+
buildkite-agent pipeline upload .buildkite/runtests.yml
14+
15+
# For 1.9, we need a `coverage=false` build due to pkgimages
16+
if [[ "$${JULIA_VERSION}" == "1.9" ]]; then
17+
JULIA_TEST_COVERAGE=true buildkite-agent pipeline upload .buildkite/runtests.yml
18+
fi
19+
done
20+
done
21+
agents:
22+
queue: "juliaecosystem"

Diff for: .buildkite/runtests.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
steps:
2+
- label: ":test_tube: Julia ${JULIA_VERSION}, ${AGENT_OS} ${AGENT_ARCH}"
3+
plugins:
4+
- JuliaCI/julia#v1:
5+
version: "${JULIA_VERSION}"
6+
# This buildkite plugin has a `command` hook inside of it,
7+
# so we don't need to specify a `commands` block for this step.
8+
- JuliaCI/julia-test#v1:
9+
coverage: "${JULIA_TEST_COVERAGE}"
10+
agents:
11+
queue: "juliaecosystem"
12+
os: "${AGENT_OS}"
13+
arch: "${AGENT_ARCH}"

0 commit comments

Comments
 (0)