From 429cd0a26432339ee05597a19a97e729a846218f Mon Sep 17 00:00:00 2001
From: "Patrick L.S. Connor" <patrick.connor@cern.ch>
Date: Fri, 31 Jan 2025 11:56:10 +0100
Subject: [PATCH] set up micromamba by hand rather than sourcing bashrc (fix
 CI)

---
 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index edbe668..910ca3a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,7 +28,10 @@ micromamba:
     stage: build
     script:
         - sh <(curl -L micro.mamba.pm/install.sh)
-        - source ~/.bashrc
+        - export MAMBA_EXE='/root/.local/bin/micromamba'
+        - export MAMBA_ROOT_PREFIX='/root/micromamba'
+        - __mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
+        - eval "$__mamba_setup"
         - micromamba --version
         - micromamba create -f prerequisites.yml -y -v
         - micromamba activate DAS
-- 
GitLab