diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bd66ab6862d1707cb6a96a1f169833ab0b3c7bf2..482ca3b0c60465b9c1223330fdce93fbe0a5a374 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,8 +19,10 @@
   script:
     # Let's run the tests. Substitute `coverage = false` below, if you do not
     # want coverage results.
-    - /opt/julia/bin/julia -e 'Pkg.clone(pwd()); Pkg.test("BallAndBeam",
-      coverage = true)'
+    # - /opt/julia/bin/julia -e 'Pkg.clone(pwd()); Pkg.test("BallAndBeam",
+      # coverage = true)'
+      - /opt/julia/bin/julia -e 'Pkg.checkout("BallAndBeam"); Pkg.test("BallAndBeam",
+        coverage = true)'
     # Comment out below if you do not want coverage results.
     - /opt/julia/bin/julia -e 'Pkg.add("Coverage"); cd(Pkg.dir("BallAndBeam"));
       using Coverage; cl, tl = get_summary(process_folder());