Skip to content
Snippets Groups Projects
Commit a2e164bb authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

Update .gitlab-ci.yml file

parent 5ef6c8f7
No related branches found
No related tags found
No related merge requests found
...@@ -186,15 +186,20 @@ build-spack-env-on-runner: ...@@ -186,15 +186,20 @@ build-spack-env-on-runner:
- spack env create $SPACK_DEV_ENV spack.yaml - spack env create $SPACK_DEV_ENV spack.yaml
- spack env activate $SPACK_DEV_ENV - spack env activate $SPACK_DEV_ENV
- spack concretize -f --fresh - spack concretize -f --fresh
- spack install -y --fresh --no-check-signature --keep-stage - spack install -y -j2 --fresh --no-check-signature --keep-stage
after_script: after_script:
- mkdir spack_logs
# succesfully installed packages: keep the spack logs for any package modified during this CI job
- cp --parents $SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/*/.spack/*.txt ./
- mv .$SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed
# not succesfully installed packages: also keep the spack logs for any packages that failed
- cp --parents /tmp/$(whoami)/spack-stage/*/*.txt ./ - cp --parents /tmp/$(whoami)/spack-stage/*/*.txt ./
- mv ./tmp/$(whoami)/spack-stage spack-logs - mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed
timeout: 2 days
artifacts: artifacts:
paths: paths:
- spack-logs - spack_logs
when: always when: always
timeout: 2 days
# cache: # cache:
# key: spack-cache-$CI_COMMIT_REF_SLUG # key: spack-cache-$CI_COMMIT_REF_SLUG
# paths: # paths:
...@@ -238,16 +243,22 @@ sync-gitlab-spack-instance: ...@@ -238,16 +243,22 @@ sync-gitlab-spack-instance:
- spack env activate $SPACK_NFS_ENV - spack env activate $SPACK_NFS_ENV
- cp $CI_PROJECT_DIR/spack.yaml $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.yaml - cp $CI_PROJECT_DIR/spack.yaml $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.yaml
- spack concretize -f --fresh - spack concretize -f --fresh
- spack install -y --fresh --no-check-signature --keep-stage - spack install -y -j2 --fresh --no-check-signature --keep-stage
- spack module tcl refresh -y - spack module tcl refresh -y
- spack reindex - spack reindex
- spack env loads -r - spack env loads -r
after_script: after_script:
- mkdir spack_logs
# succesfully installed packages: keep the spack logs for any package modified during this CI job
# (we use repo.yaml, that is modified at each start of the pipeline, as a reference file)
- find $SPACK_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/*/.spack/*.txt -newer $SPACK_REPO_PATH/repo.yaml -exec cp --parents -r "{}" ./ \;
- mv .$SPACK_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed
# not succesfully installed packages: also keep the spack logs for any packages that failed
- cp --parents /tmp/$(whoami)/spack-stage/*/*.txt ./ - cp --parents /tmp/$(whoami)/spack-stage/*/*.txt ./
- mv ./tmp/$(whoami)/spack-stage spack-logs - mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed
artifacts: artifacts:
paths: paths:
- spack-logs - spack_logs
when: always when: always
only: only:
refs: refs:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment