From bed969af5273594ab0a45aeaf9b2b7e2c4249e2a Mon Sep 17 00:00:00 2001 From: James Date: Wed, 20 Dec 2023 11:42:46 -0500 Subject: [PATCH] Update jobscript.sh (#5) * Update jobscript.sh 1. eliminate unused modules 2. reordered steps of jobscript.sh 3. rename job * unbuffered srun to get logs in buildkite --- .buildkite/pipeline.yml | 2 +- jobscript.sh | 20 ++++++++------------ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index a20a870..725386e 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -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/" diff --git a/jobscript.sh b/jobscript.sh index d467406..59b3014 100755 --- a/jobscript.sh +++ b/jobscript.sh @@ -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 --mail-user=cuffaro.m@ufl.edu # 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")'