diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 45159810456f88dd2b1130654c8b960fefca7c7e..7d7bd510aed26ddd422ac228e8f5093c0c481341 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,9 +41,6 @@ test:debian:
     #- make test
   dependencies:
     - build:debian
-  artifacts:
-    paths:
-    - build/
 
 config:ubuntu:
   image: fperignon/hysop:ubuntu
@@ -65,6 +62,8 @@ build:ubuntu:
     - cd build
     - echo $'y\n'|make uninstall
     - make clean
+    - cd ..
+    - rm -rf build
   dependencies:
     - config:ubuntu
   #artifacts:
@@ -81,8 +80,8 @@ test:ubuntu:
     - su "hysoprunner" -c "sh ci/run_tests.sh"
     #- su "hysoprunner" -c "ctest -VV -I 1,4"
     #- make test
-  #dependencies:
-  #  - build:ubuntu
+  dependencies:
+    - build:ubuntu
   #artifacts:
   #  paths:
   #  - build/