diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 42d671bcac78e78b4193aeda75ece680d86e96a6..a0a0318583a6d8bbcd2f37571c5611d402ce045e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,7 +17,7 @@ starpu-simgrid:
     - git submodule update
     - mkdir build
     - cd build
-    - . /home/ci/spack/share/spack/setup-env.sh
+    - . $HOME/spack/share/spack/setup-env.sh
     - spack load hwloc && spack load fxt && spack load simgrid && spack load starpu
     - cmake .. -DCHAMELEON_SIMULATION=ON -DCHAMELEON_USE_CUDA=ON -DCHAMELEON_USE_MAGMA=OFF -DCHAMELEON_USE_MPI=OFF
     - make -j2