diff --git a/.buildkite/build_docs.sh b/.buildkite/build_docs.sh new file mode 100755 index 000000000..20646dd7f --- /dev/null +++ b/.buildkite/build_docs.sh @@ -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")' diff --git a/.buildkite/example.yml b/.buildkite/example.yml new file mode 100644 index 000000000..b9c821ff7 --- /dev/null +++ b/.buildkite/example.yml @@ -0,0 +1,5 @@ +steps: + + - label: ":wave: hello!" + command: | + echo "hello" diff --git a/.buildkite/jobscript.sh b/.buildkite/jobscript.sh old mode 100755 new mode 100644 diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 962541a88..9c753108b 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -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 - diff --git a/.buildkite/run_tests.sh b/.buildkite/run_tests.sh new file mode 100755 index 000000000..c03883642 --- /dev/null +++ b/.buildkite/run_tests.sh @@ -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()"