diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0ffe153e477c0d6a679eb0de6ec7d941eb53e50b..580fe147a9d6c91dc1e37ac6e6c7a3294ad7a06f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,8 @@
 image: ruby:2.3
 
 before_script:
-  - apt-get update -qq && apt-get install -y -qq libbluetooth-dev cmake valgrind qt5-default qt5-qmake
+  - apt-get update -qq && apt-get install -y -qq libbluetooth-dev cmake valgrind qt4-default qt5-qmake
+  - ln -s /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /bin/qmake-qt5 # QT hack
 
 stages:
   - build