diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2821735c50c4168df452f06b1db4446250325b46..f71dec722345398daf9bb8e353ac31c3b7c9e06e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,3 @@
-before_script:
-  - pip install --user untangle
-
 stages:
 - build
 - test
@@ -33,6 +30,7 @@ coverage:
   - test
   script:
   # - ./gradlew --continue --console=plain -x test
+  - pip install --user untangle
   - python2 print-coverage.py
   coverage: "/Covered (\\d{1,3}\\.\\d{2}%) of instructions for all projects\\./"
   allow_failure: true