diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 54c80cca042fc224c4cb450888ad45a4c9ea4547..bbf45ab01fc7ec98ce99c7b77da7de5eeacfbfc3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,14 @@ stages:
   - test
   - deploy
 
+before_script:
+  - apt-get update -qq && apt-get -qq -y install python3-pip && python3 -m pip install --upgrade pip
+  - python3 -V
+  - python3 -m pip --version
+  - g++ --version
+  - cat /etc/*-release
+  - python3 -m pip install gcovr
+
 build:
   stage: build
   variables:
@@ -71,7 +79,8 @@ clang-tidy:
     GIT_SUBMODULE_STRATEGY: normal
     TERM: xterm-color
   script:
-     - ./ci/clang-tidy.sh
+    # Running with `script` to give clang a tty so that it outputs colours
+    - script -e -c "bash -x ci/clang-tidy.sh"
 
 pages:
   stage: deploy