diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f504d34aafc6acdf5c30adee10d096555746acb8..5d33ac9a67ddd546d95da401c0af2848a8b7b41c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,16 @@
+variables:
+  RUN:
+    value: "all"
+    description: "The tests that should run. Possible values: ubuntu, win10, all."
+
 stages:
   - build
   - deploy
 
 build_ubuntu_gcc:
+  only:
+    variables:
+      - $RUN =~ /\bubuntu.*/i || $TARGET =~ /\ball.*/i
   stage: build
   tags: 
     - ubuntu-gcc
@@ -23,6 +31,9 @@ build_ubuntu_gcc:
     expire_in: never
 
 build_win10_msvc:
+  only:
+    variables:
+      - $RUN =~ /\bwin10.*/i || $TARGET =~ /\ball.*/i
   stage: build
   tags: 
     - win10-msvc