Skip to content
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
16 changes: 16 additions & 0 deletions .buildkite/build_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

pwd; hostname; date

if [ $# -ne 1 ]; then
echo "Usage: $0 VERSION"
echo "Example: $0 1.10.0"
exit 1
fi

VERSION=$1

module load julia/$VERSION

echo "Building documentation..."
julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.status(); Pkg.instantiate(); include("docs/make.jl")'
5 changes: 5 additions & 0 deletions .buildkite/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
steps:

- label: ":wave: hello!"
command: |
echo "hello"
Empty file modified .buildkite/jobscript.sh
100755 → 100644
Empty file.
32 changes: 11 additions & 21 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
env:
JULIA_VERSION: "1.10.2"
GATAS_HOME: "~/.gatas/buildkite/agents/$BUILDKITE_AGENT_NAME"

# you may replace the default AlgebraicJulia pipeline with your own. Just move
# your pipeline into the .buildkite directory and rename the file being checked
# below to your pipeline. More documentation to come.
steps:

- label: ":hammer: Build Project"
env:
JULIA_DEPOT_PATH: "$GATAS_HOME"
command:
- "module load julia"
- "julia --project=docs --color=yes -e 'using Pkg; Pkg.update(); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.precompile()'"

- wait

- label: ":scroll: Build docs and run tests"
env:
JULIA_DEPOT_PATH: "$GATAS_HOME"
JULIA_PROJECT: "docs/"
command:
- "srun --cpus-per-task=16 --mem=64G --time=1:00:00 --output=.buildkite/log_%j.log --unbuffered .buildkite/jobscript.sh"

- label: ":arrow_down: Load AlgebraicJulia pipeline"
command: |
if [ -f ".buildkite/example.yml.bak" ]; then
buildkite-agent pipeline upload .buildkite/example.yml
else
curl -s https://raw.githubusercontent.com/AlgebraicJulia/.github/main/buildkite/pipeline.yml | buildkite-agent pipeline upload
fi

- wait

16 changes: 16 additions & 0 deletions .buildkite/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

pwd; hostname; date

if [ $# -ne 1 ]; then
echo "Usage: $0 VERSION"
echo "Example: $0 1.10.0"
exit 1
fi

VERSION=$1

module load julia/$VERSION

echo "Running tests..."
julia --project -e "using Pkg; Pkg.status(); Pkg.test()"
Loading