Files
spack-psi/.gitlab-ci.yml
2022-10-18 16:29:39 +02:00

29 lines
807 B
YAML

stages: [build_test]
variables:
GIT_STRATEGY: clone
MAX_JOB_NB: 4
SPACK_BRANCH: develop
SPACK_COMPILER: gcc
SPACK_PCKG_VERSION: develop
SPACK_PCKG: py-hiqsimulator
SPACK_REPO: https://github.com/spack/spack.git
SPACK_SPEC: ${SPACK_PCKG}@${SPACK_PCKG_VERSION}%${SPACK_COMPILER}
build_test:
tags:
- merlin
stage: build_test
script:
- git clone ${SPACK_REPO} -b ${SPACK_BRANCH}
- . "./spack/share/spack/setup-env.sh"
- spack env activate --without-view env/merlin/${SPACK_PCKG}
- spack install -j ${MAX_JOB_NB} git-lfs
- spack develop ${SPACK_SPEC}
- spack install -j ${MAX_JOB_NB}
- spack load ${SPACK_SPEC}
- cd env/merlin/${SPACK_PCKG}/${SPACK_PCKG}
- ls -la
# - JOB_ID=$(sbatch --parsable ../test/run.slurm)
# - cat slurm-${JOB_ID}.out