diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index efa2b48dd22afa646a597cf7da0c9ffd3cfe0557..f6c92e55dd0e82fb71c9b01ef03559500c867bc0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,4 @@
+
 variables:
   GIT_SUBMODULE_STRATEGY: recursive
 
@@ -8,6 +9,7 @@ stages:
 build-gcc64:
   stage: build
   before_script:
+    - . /sw/rhel6-x64/etc/profile.mistral && module list
     - module load libtool autoconf automake
     - cd libcdi && git checkout develop && ./autogen.sh && cd ..
     - autoreconf -vfi --no-recursive
@@ -26,6 +28,8 @@ build-gcc64:
 check-gcc64:
   stage: check
   needs: ["build-gcc64"]
+  before_script:
+    - . /sw/rhel6-x64/etc/profile.mistral && module list
   script:
     - module load gcc/6.4.0
     - cd gcc64 && make check
@@ -37,6 +41,7 @@ check-gcc64:
 build-intel18:
   stage: build
   before_script:
+    - . /sw/rhel6-x64/etc/profile.mistral && module list
     - module load libtool autoconf automake
     - cd libcdi && git checkout develop && ./autogen.sh && cd ..
     - autoreconf -vfi --no-recursive
@@ -55,6 +60,8 @@ build-intel18:
 check-intel18:
   stage: check
   needs: ["build-intel18"]
+  before_script:
+    - . /sw/rhel6-x64/etc/profile.mistral && module list
   script:
     - module load gcc/6.4.0 intel
     - cd intel18 && make check