diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 991ce7c716211d991e64687435bb858aa0301665..1691e57bd8fd4e8768d91d7c59bf73ede7b37b48 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,46 +3,17 @@
   stages:
     - rdepends
 
-  variables:
-    ALGO: "TRUE"
-
-  mal:
-    stage: rdepends
-    script:
-      - exit 1
-
-  bien:
-    stage: rdepends
-    script:
-      - exit 0
-
-  when_bien:
-    stage: rdepends
-    when: always
-    needs: [bien]
-    script:
-      - echo "GOOD"
-
-  when_mal:
-    stage: rdepends
-    when: always
-    needs: [mal]
-    script:
-      - echo "GOOD"
-
-  algo_bien:
-    stage: rdepends
-    rules:
-      - if: $ALGO == "TRUE"
-        when: always
-    script:
-      - echo "GOOD"
-
-  algo_mal:
-    stage: rdepends
-    rules:
-      - if: $ALGO != "TRUE"
-        when: always
+    test_dep:
+    stage: test
     script:
-      - echo "GOOD"
-      
\ No newline at end of file
+      - DEP=( $(grep -P '[^#]\s+SET\(CPACK_DEBIAN_PACKAGE_DEPENDS\s+"' CMakeLists.txt) )
+      - declare -a DEP
+      - for ((i=1;i<${#DEP[@]};i+=3))
+        do
+          if [ ${i} -eq 1 ]
+          then 
+            apt -y install ${DEP[${i}]:1}
+          else
+            apt -y install ${DEP[${i}]}
+          fi
+        done
\ No newline at end of file