From d0e274cbba14dfa6b70e6661a9a31de0fcc279d1 Mon Sep 17 00:00:00 2001
From: Eleni Mathioulaki <emathioulaki@athenarc.gr>
Date: Sat, 24 Feb 2024 01:17:46 +0100
Subject: [PATCH] don't create env view for gitlab-runner test jobs

---
 .gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb05c46a..1a93fae6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -170,6 +170,9 @@ build-spack-env-on-runner:
   variables:
     SPACK_DEV_ENV: ebrains-dev
   script:
+    # deactivate environment views (we don't need them for the test build-job)
+    - >
+        echo "  view: False" >> $CI_PROJECT_DIR/site-config/$SYSTEMNAME/spack.yaml
     # run installation script
     - . install_spack_env.sh $CI_PROJECT_DIR $SPACK_VERSION $CI_PROJECT_DIR $SPACK_DEV_ENV $SPACK_PATH_GITLAB
     # re-activate envionment and run tests
-- 
GitLab