diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 435316bafcec9fea3d92b480fe1a53147c9a2d8a..bf2653c4eb4a004efcc8542b268f3a0c3fbf9c62 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,14 @@ variables: before_script: - pip3 install pytest-workflow +.slurm_before_script_anchor: &slurm_before_script_anchor + before_script: + - export BASETEMP=$RUN_BASE_DIR/$CI_COMMIT_REF_NAME/$CI_JOB_ID + - source ${CONDA_SH} + - conda activate vcf-to-varda + - export PATH=${PATH}:${SINGULARITY_PATH} + - echo $BASETEMP + stages: - sanity - dry-run @@ -19,9 +27,9 @@ test-sanity: stage: sanity test-dry-run: - <<: *before_script_anchor + <<: *slurm_before_script_anchor script: - - pytest --keep-workflow-wd-on-fail --tag dry-run + - pytest --keep-workflow-wd-on-fail --basetemp ${BASETEMP} --tag dry-run image: lumc/singularity-snakemake:3.5.2-5.15.0 tags: - slurm