diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6c4a7d333e62bd5af1e54399939cb3e4509aeae0..1e2b81caa54e8ea45d532e37b5efcc5b83602d73 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,25 +2,28 @@ image: corsika/devel:u-18.04
 
 variables:
   GIT_SSL_NO_VERIFY: "1"
+  ## Runtime options for sanitizers
+  # (detect_leaks=0 because leak detection doesn't work in CI, but you can
+  # try to test with leak detection locally by using detect_leaks=1)
+  UBSAN_OPTIONS: "print_stacktrace=1"
+  LSAN_OPTIONS: "log_threads=1"
+  ASAN_OPTIONS: "detect_leaks=0:detect_stack_use_after_return=1"
 
 build:
   stage: build
   tags:
     - corsika
-
-  # detect_leaks=0 because leak detection doesn't work in CI, but you can
-  # try to test with leak detection locally, just set detect_leaks=1
   script:
     - mkdir build
     - cd build
     - cmake ..
-    - cmake --build . -- -j4
-    - UBSAN_OPTIONS=print_stacktrace=1
-      LSAN_OPTIONS=log_threads=1
-      ASAN_OPTIONS=detect_leaks=0:detect_stack_use_after_return=1 ctest -j4 -V -O test.log
+    - cmake --build . -- -j 4
+    - ctest -j4 -V >& test.log
   after_script:
     - cd build
+    - ls
     - gzip -v -9 -S .gz test.log
+    - pwd
   artifacts:
     expire_in: 1 week
     paths: