From b18a15255e401820070e787fcde6a669d1674be2 Mon Sep 17 00:00:00 2001 From: Fischer Jonas <jf131@hdm-stuttgart.de> Date: Thu, 22 Feb 2024 15:24:59 +0100 Subject: [PATCH] 22.02.2024 - Update .gitlab-ci.yml file #36 --- .gitlab-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8706059..22e97e2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,12 +18,11 @@ build-backend: # This job runs in the build stage, which runs first. test-backend: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. image: maven:3.9.4-eclipse-temurin-21 - before_script: - - apt-get update -qy - - apt-get install -y docker - - echo 'Starting Docker Container' - - /usr/bin/docker-compose up -d + services: + - docker/compose:latest script: + - echo 'Run docker compose' + - docker compose up -d - echo 'Running unit tests...' - cd ./sth-backend - mvn test -- GitLab