ADD: working pipeline to test HyQuas and HiQsimulator
This commit is contained in:
28
.gitlab-ci.yml
Normal file
28
.gitlab-ci.yml
Normal file
@ -0,0 +1,28 @@
|
||||
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
|
Reference in New Issue
Block a user