From b1aff8baaa1d4e8278ee3b882762fcfff4441395 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 1 Jul 2024 14:24:18 -0400 Subject: [PATCH 1/3] adding buildkite functionality --- .buildkite/jobscript.sh | 11 +++++++++++ .buildkite/pipeline.yml | 24 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) 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..ebf5502 --- /dev/null +++ b/.buildkite/jobscript.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +pwd; hostname; date + +module load julia + +echo "Running Tests..." +julia --project -t 16 -e 'using Pkg; Pkg.status(); Pkg.test()' + +echo "Building Documentation..." +julia --project=docs -t 16 -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..962541a --- /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" + 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" + + - wait + From 40381d762148d360e7a3266be8d8eda204abeca0 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 19 Sep 2024 15:39:32 -0400 Subject: [PATCH 2/3] updating pipeline --- .buildkite/pipeline.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 962541a..977331a 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,12 +1,10 @@ env: JULIA_VERSION: "1.10.2" - GATAS_HOME: "~/.gatas/buildkite/agents/$BUILDKITE_AGENT_NAME" + GATAS_HOME: "$DEPOT" 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()'" @@ -15,7 +13,6 @@ steps: - 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" From dccb8f070abd99f8da669192a31d38c6eff70fcc Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 19 Sep 2024 15:53:14 -0400 Subject: [PATCH 3/3] removed Pkg.update() until package is registered --- .buildkite/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 977331a..b22cba9 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -7,7 +7,7 @@ steps: - label: ":hammer: Build Project" command: - "module load julia" - - "julia --project=docs --color=yes -e 'using Pkg; Pkg.update(); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.precompile()'" + - "julia --project=docs --color=yes -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.precompile()'" - wait