From 05427d5e4b6f4cacb3b3c65ad95a527fa2879927 Mon Sep 17 00:00:00 2001 From: quffaro Date: Mon, 24 Jun 2024 19:43:09 +0000 Subject: [PATCH] Cm/buildkite (#168) * adding buildkite folder * testing new julia depot path for this build * testing new julia depot path for this build * fixed make.jl issue where generated still looked for default literate_example.md file * typo in pipeline.yml which creates subdirectory in agent --- .buildkite/jobscript.sh | 11 +++++++++++ .buildkite/pipeline.yml | 24 ++++++++++++++++++++++++ docs/make.jl | 2 +- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100755 .buildkite/jobscript.sh create mode 100644 .buildkite/pipeline.yml diff --git a/.buildkite/jobscript.sh b/.buildkite/jobscript.sh new file mode 100755 index 0000000..d27f4ec --- /dev/null +++ b/.buildkite/jobscript.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +pwd; hostname; date + +module load julia + +echo "Running Tests..." +julia --project -e 'using Pkg; Pkg.status(); Pkg.test()' + +echo "Building Documentation..." +julia -t 16 --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.status(); Pkg.instantiate(); include("docs/make.jl")' diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 0000000..e16b015 --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,24 @@ +env: + JULIA_VERSION: "1.10.2" + GATAS_HOME: "~/.gatas/buildkite/agents/$BUILDKITE_AGENT_NAME" + +steps: + + - label: ":hammer: Build Project" + env: + JULIA_DEPOT_PATH: "$GATAS_HOME" + commands: + - "module load julia" + - "julia --project=docs --color=yes -e 'using Pkg; 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/build_%j.log --unbuffered .buildkite/jobscript.sh" + + - wait + diff --git a/docs/make.jl b/docs/make.jl index 0d6ad07..45047c8 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -42,7 +42,7 @@ makedocs( pages=Any[ "DataMigrations.jl"=>"index.md", "Examples"=>Any[ - "generated/literate_example.md", + "generated/migrations_intro.md", ], "Library Reference"=>"api.md", ]