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

Update .gitlab-ci.yml file

parent 31a4a2eb
No related branches found
No related tags found
1 merge request!193create new experimental release
Pipeline #19505 canceled with stage
in 4 seconds
......@@ -297,7 +297,6 @@ sync-gitlab-spack-instance:
SPACK_USER_CONFIG_PATH: $SPACK_PATH/.spack
SPACK_REPO_PATH: $SPACK_PATH/ebrains-spack-builds
script:
- rm -rf /mnt/build_logs/
- |
if [ ! -d $SPACK_PATH ]; then
# git clone --depth 1 -c advice.detachedHead=false -c feature.manyFiles=true --branch $SPACK_VERSION https://github.com/spack/spack $SPACK_PATH
......@@ -315,7 +314,7 @@ sync-gitlab-spack-instance:
- spack load gcc@10.3.0
- spack compiler find
- spack compiler list
- spack install python@3.8.11 %gcc@10.3.0 || (cp -r /tmp/spack/spack-stage /mnt/build_logs; exit 1)
- spack install python@3.8.11 %gcc@10.3.0 || (cp -r /tmp/spack/spack-stage $CI_PROJECT_DIR/build_logs; exit 1)
# - for section in $(spack config list); do spack config blame $section; done
- mkdir -p $SPACK_REPO_PATH && cp -r -t $SPACK_REPO_PATH $CI_PROJECT_DIR/{packages,repo.yaml}
- spack repo list | grep -q ebrains-spack-builds && echo "Repository registered already" || spack repo add $SPACK_REPO_PATH
......@@ -324,11 +323,15 @@ sync-gitlab-spack-instance:
- spack env activate $SPACK_NFS_ENV
- cp $CI_PROJECT_DIR/spack.yaml $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.yaml
- spack concretize -f
- spack install --no-check-signature || (cp -r /tmp/spack/spack-stage /mnt/build_logs; exit 1)
- spack install --no-check-signature || (cp -r /tmp/spack/spack-stage $CI_PROJECT_DIR/build_logs; exit 1)
- spack module tcl refresh -y
- spack reindex
- spack env loads -r
timeout: 2 days
artifacts:
paths:
- build_logs/
when: on_failure
only:
refs:
- schedules
......
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