diff --git a/.buildkite/build_docs.sh b/.buildkite/build_docs.sh new file mode 100755 index 0000000..30a974c --- /dev/null +++ b/.buildkite/build_docs.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +#SBATCH --job-name=diagrammatic_equations_CI_docs # 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:15:00 # Time limit hrs:min:sec + +pwd; hostname; date + +if [ $# -ne 1 ]; then + echo "Usage: $0 VERSION" + echo "Example: $0 1.10.0" + exit 1 +fi + +VERSION=$1 + +module load julia/$VERSION + +echo "Building documentation..." +julia --project=docs -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 index 285a493..5eca904 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,7 +1,3 @@ -env: - JULIA_VERSION: "1.10.2" - JULIA_DEPOT_PATH: "$DEPOT" - steps: - label: ":arrow_down: Load AlgebraicJulia pipeline" diff --git a/.buildkite/run_tests.sh b/.buildkite/run_tests.sh new file mode 100755 index 0000000..063a6de --- /dev/null +++ b/.buildkite/run_tests.sh @@ -0,0 +1,22 @@ +#!/bin/bash +#SBATCH --job-name=diagrammatic_equations_CI_test # 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:15:00 # Time limit hrs:min:sec + +pwd; hostname; date + +if [ $# -ne 1 ]; then + echo "Usage: $0 VERSION" + echo "Example: $0 1.10.0" + exit 1 +fi + +VERSION=$1 + +module load julia/$VERSION + +echo "Running tests..." +julia --project -e "using Pkg; Pkg.status(); Pkg.test()"