Skip to content

Commit

Permalink
Cm/buildkite (#168)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
quffaro authored Jun 24, 2024
1 parent 1c17299 commit 05427d5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .buildkite/jobscript.sh
Original file line number Diff line number Diff line change
@@ -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")'
24 changes: 24 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down

0 comments on commit 05427d5

Please sign in to comment.