From 31c4c20c93e68bbb3d0aac003c41a2dbabe05539 Mon Sep 17 00:00:00 2001 From: Fischer Jonas <jf131@hdm-stuttgart.de> Date: Thu, 22 Feb 2024 15:45:44 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f92978..a1f7b0a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,17 +15,14 @@ build-backend: # This job runs in the build stage, which runs first. - mvn compile -test-backend: # This job runs in the test stage. - stage: test # It only starts when the job in the build stage completes successfully. +test-backend: + stage: test image: maven:3.9.4-eclipse-temurin-21 services: - - docker:latest - - docker:dind + - docker/compose:latest before_script: - - docker version - - docker compose version - echo 'Run docker compose' - - docker compose up -d + - docker-compose up -d script: - echo 'Running unit tests...' - cd ./sth-backend -- GitLab