Skip to content

Commit

Permalink
Polishing Buildkite pipeline (#85)
Browse files Browse the repository at this point in the history
* removed buildkite DEPOT variable
  • Loading branch information
quffaro authored Nov 15, 2024
1 parent d4553b8 commit 8a3e5e7
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .buildkite/build_docs.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected] # 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")'
4 changes: 0 additions & 4 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
env:
JULIA_VERSION: "1.10.2"
JULIA_DEPOT_PATH: "$DEPOT"

steps:

- label: ":arrow_down: Load AlgebraicJulia pipeline"
Expand Down
22 changes: 22 additions & 0 deletions .buildkite/run_tests.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected] # 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()"

0 comments on commit 8a3e5e7

Please sign in to comment.