Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial stab at Buildkite CI config #849

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
steps:
- label: ":runner: Launch matrix of jobs"
commands: |
AGENT_OS_AND_ARCH=( linux-x86_64 windows-x86_64 macos-aarch64 )
JULIA_VERSIONS=( 1.6 1.8 1.9 nightly )
JULIA_TEST_COVERAGE=false

for AGENT_OS_AND_ARCH in "$${AGENT_OS_AND_ARCH[@]}"; do
IFS=- read AGENT_OS AGENT_ARCH <<<"$${AGENT_OS_AND_ARCH}"
for JULIA_VERSION in "$${JULIA_VERSIONS[@]}"; do
# Skip julia versions that do not exist
if [[ "$${AGENT_OS_AND_ARCH}" == "macos-aarch64" ]] && [[ "$${JULIA_VERSION}" == "1.6" ]]; then
continue
fi

# Template `runtests.yml` with the values from our matrix
export AGENT_OS AGENT_ARCH JULIA_VERSION JULIA_TEST_COVERAGE
buildkite-agent pipeline upload .buildkite/runtests.yml

# For 1.9, we need a `coverage=false` build due to pkgimages
if [[ "$${JULIA_VERSION}" == "1.9" ]]; then
JULIA_TEST_COVERAGE=true buildkite-agent pipeline upload .buildkite/runtests.yml
fi
done
done
agents:
queue: "juliaecosystem"
13 changes: 13 additions & 0 deletions .buildkite/runtests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
steps:
- label: ":test_tube: :${AGENT_OS}: Julia ${JULIA_VERSION}, ${AGENT_OS} ${AGENT_ARCH}, coverage=${JULIA_TEST_COVERAGE}"
plugins:
- JuliaCI/julia#v1:
version: "${JULIA_VERSION}"
# This buildkite plugin has a `command` hook inside of it,
# so we don't need to specify a `commands` block for this step.
- JuliaCI/julia-test#v1:
coverage: "${JULIA_TEST_COVERAGE}"
agents:
queue: "juliaecosystem"
os: "${AGENT_OS}"
arch: "${AGENT_ARCH}"
Loading