diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 91b67e1aa1e2dfe5497b050a23f6e0c4db384ade..43881eb98b8aab6424bcec2d2fb27f5a5f1c16e9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,7 +38,7 @@ tests:
 cppcheck:
   stage: build
   before_script:
-    - echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list  
+    - echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list
     - apt-get update -qq && apt-get -t testing install -y cppcheck
     - cppcheck --version
   script:
@@ -48,7 +48,7 @@ cppcheck-misra:
   stage: build
   before_script:
   # install cppcheck from the testing repos in order to get the latest version
-    - echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list  
+    - echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list
     - apt-get update -qq && apt-get -t testing install -y cppcheck && apt-get -t testing install -y python3
     - cppcheck --version
   script:
@@ -75,4 +75,4 @@ clang-tidy:
     - clang-tidy-7 --version
   script:
     # Running with `script` to give clang a tty so that it outputs colours
-    - script -c "bash -x ci/clang-tidy.sh"
+    - script -ec "bash -x ci/clang-tidy.sh"