ADD: working pipeline to test HyQuas and HiQsimulator

This commit is contained in:
Germann Elsa Sylvia
2022-10-18 16:29:39 +02:00
parent c7120345ed
commit b51b0ed131
16 changed files with 42 additions and 20 deletions

28
.gitlab-ci.yml Normal file
View 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