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

feat(CI): deactivate view during concretization and installation

parent 2dbb7fb9
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,9 @@ cp /tmp/spack.yaml ${CI_SPACK_ROOT}/var/spack/environments/$EBRAINS_SPACK_ENV/
# activate environment
spack env activate --without-view $EBRAINS_SPACK_ENV
# deactivate view during concretization and installation
spack env view disable
spack concretize --force --fresh --test root
# dump dag to file
......@@ -144,6 +147,10 @@ fi
# delay exit code until we have updated the cache below
spack install --no-check-signature -y -j$SPACK_JOBS --fresh --test root && spack_install_ret=$? || spack_install_ret=$?
# re-enable view
spack env view enable
spack env view regenerate
# no need to update the local cache nor the remote cache if we don't want to update
if [ -n "${OCI_CACHE_PREFIX}" ] && [ "${UPDATE_SPACK_OCI_CACHES:-false}" = "true" ]; then
# push previously missing (but now installed) packages to the local cache
......
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