diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8f7502796abb775ab5092e8e723f8ac30435af7a..700b7f7fc49eb357eb6735981c7746d05b775825 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@
   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.rm("BallAndBeam");Pkg.clone(pwd()); Pkg.test("BallAndBeam",coverage = true)'
     #- /opt/julia/bin/julia -e 'Pkg.update();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"));