Skip to content

Commit

Permalink
Update jobscript.sh (#5)
Browse files Browse the repository at this point in the history
* Update jobscript.sh

1. eliminate unused modules
2. reordered steps of jobscript.sh
3. rename job

* unbuffered srun to get logs in buildkite
  • Loading branch information
jpfairbanks authored Dec 20, 2023
1 parent ba7061e commit bed969a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:

- label: ":scroll: Build docs"
command:
- "srun --mem=8G --time=1:00:00 --output=log_%j.log jobscript.sh"
- "srun --mem=8G --time=1:00:00 --unbuffered jobscript.sh"
env:
JULIA_PROJECT: "docs/"

Expand Down
20 changes: 8 additions & 12 deletions jobscript.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
#!/bin/bash
#SBATCH --job-name=daemon_job_test # Job name
#SBATCH --job-name=diagrammatic_equations_CI # Job name
#SBATCH --mail-type=END,FAIL # Mail events (NONE, BEGIN, END, FAIL, ALL)
#SBATCH [email protected] # Where to send mail
#SBATCH --ntasks=1 # Run on a single CPU
#SBATCH --mem=8gb # Job memory request
#SBATCH --time=00:05:00 # Time limit hrs:min:sec
#SBATCH --output=daemon_test_%j.log # Standard output and error log
#SBATCH --time=00:15:00 # Time limit hrs:min:sec
pwd; hostname; date

module load gcc/12.2.0 openmpi/4.1.5 julia
module load julia

echo "Running docs build..."
echo "Installing Packages..."

julia --project=docs/ -e 'using Pkg; Pkg.status()'
julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); include("docs/make.jl")'
# julia --project -e 'using Pkg; Pkg.status; Pkg.test()' > log_test.md
# ./job.sh

# mpiexec -np 1 julia --project -e test/runtests.jl

date

echo "Running Tests..."
julia --project -e 'using Pkg; Pkg.status(); Pkg.test()'

echo "Building Documentation..."
julia --project=docs/ -e 'using Pkg; Pkg.status(); include("docs/make.jl")'

0 comments on commit bed969a

Please sign in to comment.