diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 910ca3aeffa8734615d6e74d2452e5afdf1deeac..ab7e642e1f0a311f2abb47bb71dc6b9f7178ddae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,8 +11,8 @@ LCG:
         - export NPROC=8
         - ./install.sh
         - source tools/setup.sh
-        - ctest --test-dir build/Darwin --output-junit Testing/Temporary/test_report.xml -j$(nproc)
-        - ctest --test-dir build/Core   --output-junit Testing/Temporary/test_report.xml -j$(nproc)
+        - ctest --test-dir build/Darwin --output-junit Testing/Temporary/test_report.xml -j$NPROC
+        - ctest --test-dir build/Core   --output-junit Testing/Temporary/test_report.xml -j$NPROC
         - echo yes | ./uninstall.sh
     artifacts:
       when: always