From b87273e65e4e03bb5d4e2b2e77ffd428a61b7631 Mon Sep 17 00:00:00 2001 From: "quentin.fasler" <quentin.fasler@etu.hesge.ch> Date: Wed, 17 Jan 2024 21:14:42 +0100 Subject: [PATCH] rename bdd --- .gitlab-ci.yml | 7 ++----- src/main/resources/application.properties | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 528b489..8a496b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,11 +3,6 @@ image: maven:3.9.6-eclipse-temurin-21 stages: - test -cache: - paths: - - .m2/repository - - test_job: stage: test services: @@ -20,6 +15,8 @@ test_job: before_script: - apt-get update && apt-get install -y mariadb-client - mysql -h db -P 3307 -uroot -proot quiz < src/main/resources/quiz.sql + - sed -i 's/localhost/db/g' src/main/resources/application.properties + script: - mvn test diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 99bfdcb..94250cb 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,4 +1,4 @@ -spring.datasource.url=jdbc:mariadb://db:3307/quiz +spring.datasource.url=jdbc:mariadb://localhost:3307/quiz spring.datasource.username=root spring.datasource.password=root spring.datasource.driver-class-name=org.mariadb.jdbc.Driver -- GitLab