Skip to content

Commit

Permalink
Merge pull request #186 from AlgebraicJulia/feature-buildkite
Browse files Browse the repository at this point in the history
  • Loading branch information
quffaro committed Feb 2, 2024
2 parents dc5500c + ea53487 commit e7758f4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 15 deletions.
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 32 --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.status(); Pkg.instantiate(); include("docs/make.jl")'
20 changes: 20 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
env:
JULIA_VERSION: "1.9.3"

steps:

- label: ":hammer: Build Project"
command:
- "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"
command:
- "srun --cpus-per-task=32 --mem=8G --time=1:00:00 --output=.buildkite/log_%jl.txt --unbuffered .buildkite/jobscript.sh"
env:
JULIA_PROJECT: "docs/"

- wait

30 changes: 15 additions & 15 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ if !(haskey(ENV, "GITHUB_ACTIONS") || haskey(ENV, "GITLAB_CI"))
config["repo_root_url"] = "https://github.com/AlgebraicJulia/Decapodes.jl/blob/main/docs"
end

#const literate_dir = joinpath(@__DIR__, "..", "examples")
#const generated_dir = joinpath(@__DIR__, "src", "examples")
#
#for (root, dirs, files) in walkdir(literate_dir)
# out_dir = joinpath(generated_dir, relpath(root, literate_dir))
# for file in files
# f,l = splitext(file)
# if l == ".jl" && !startswith(f, "_")
# Literate.markdown(joinpath(root, file), out_dir;
# config=config, documenter=true, credit=false)
# Literate.notebook(joinpath(root, file), out_dir;
# execute=true, documenter=true, credit=false)
# end
# end
#end
# const literate_dir = joinpath(@__DIR__, "..", "examples")
# const generated_dir = joinpath(@__DIR__, "src", "examples")

# for (root, dirs, files) in walkdir(literate_dir)
# out_dir = joinpath(generated_dir, relpath(root, literate_dir))
# pmap(files) do file
# f,l = splitext(file)
# if l == ".jl" && !startswith(f, "_")
# Literate.markdown(joinpath(root, file), out_dir;
# config=config, documenter=true, credit=false)
# Literate.notebook(joinpath(root, file), out_dir;
# execute=true, documenter=true, credit=false)
# end
# end
# end

@info "Building Documenter.jl docs"
makedocs(
Expand Down

0 comments on commit e7758f4

Please sign in to comment.