diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3a335cafd120224211c6647012e46668ac618993..69a2a5d4ddf671b1fa2f653f9b6d1c964302f988 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -122,10 +122,14 @@ build:doc:
   stage: test
   script:
     - cd release
-    - make CTEST_OUTPUT_ON_FAILURE=1 test
+    - mkdir reports
+    - make test ARGS="-j$(grep -c processor /proc/cpuinfo) --output-on-failure"
 
 .test:push: &test-push
   <<: *test
+  image: alpine:edge
+  before_script:
+    - apk add --no-cache bash bc coreutils python3 cmake make libexecinfo cppunit libxml2 tclap readline qt5-qtbase qt5-qtbase-x11 graphviz jsoncpp
   except:
     variables:
       - $SCHEDULED_NIGHTLY