From 7c8f8d732964b5661fa2f0321821d653951bc2f4 Mon Sep 17 00:00:00 2001
From: David Siegfried <david.siegfried>
Date: Tue, 21 Jun 2022 16:30:14 +0200
Subject: [PATCH] speed up ci, refs #606

---
 .gitlab-ci.yml | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f3a79ee9e06..f5fdc9191ac 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,9 +14,12 @@ stages:
   - Release
   - Build
 
+image: studip/studip:tests
+services:
+  - mariadb
+
 Linting:
   stage: Checks
-  image: studip/studip:tests
   allow_failure: false
   before_script:
     - make composer-dev
@@ -24,7 +27,6 @@ Linting:
     - php -d memory_limit=-1 composer/bin/phplint
 
 Unit Test:
-  image: studip/studip:tests
   stage: Tests
   allow_failure: false
   before_script:
@@ -34,10 +36,7 @@ Unit Test:
     - make test
 
 Functional Test:
-  services:
-    - mariadb
   stage: Tests
-  image: studip/studip:tests
   allow_failure: false
   before_script:
     - chmod +x ./.gitlab/scripts/install_db.sh
@@ -50,10 +49,7 @@ Functional Test:
     - make test-functional
 
 JSONAPI Test:
-  services:
-    - mariadb
   stage: Tests
-  image: studip/studip:tests
   allow_failure: false
   before_script:
     - chmod +x ./.gitlab/scripts/install_db.sh
-- 
GitLab