From c64b3316f633d254f2d241b50cad5656d45425bd Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Thu, 9 Feb 2023 15:12:17 +0100 Subject: [PATCH 1/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 2e021ce..5ddaf6a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: - name: docker-build-and-push image: plugins/docker settings: - #dockerfile: Sources/Dockerfile + dockerfile: Sources/Dockerfile context: Sources/ registry: hub.codefirst.iut.uca.fr repo: hub.codefirst.iut.uca.fr/corentin.richard/EntityFramework_ConsoDeServices_TP From 923fcc344d7754e06c8f7a8f7a584690a337d9ad Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Thu, 9 Feb 2023 15:13:42 +0100 Subject: [PATCH 2/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5ddaf6a..1a83591 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: - name: docker-build-and-push image: plugins/docker settings: - dockerfile: Sources/Dockerfile + dockerfile: Sources/API_LoL/Dockerfile context: Sources/ registry: hub.codefirst.iut.uca.fr repo: hub.codefirst.iut.uca.fr/corentin.richard/EntityFramework_ConsoDeServices_TP From 87a7083a652f4147cbf67e2d6849832a97b4447e Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Thu, 9 Feb 2023 15:15:43 +0100 Subject: [PATCH 3/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mise du nom du repository en lowercase --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1a83591..14828ff 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: dockerfile: Sources/API_LoL/Dockerfile context: Sources/ registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/corentin.richard/EntityFramework_ConsoDeServices_TP + repo: hub.codefirst.iut.uca.fr/corentin.richard/entityframework_consodeServices_tp username: from_secret: SECRET_REGISTRY_USERNAME From 136f28366f76a34171a3acd427d9ed22a07514a3 Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Thu, 9 Feb 2023 15:17:36 +0100 Subject: [PATCH 4/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 14828ff..a0b0b25 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: dockerfile: Sources/API_LoL/Dockerfile context: Sources/ registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/corentin.richard/entityframework_consodeServices_tp + repo: hub.codefirst.iut.uca.fr/corentin.richard/entityframework_consodeservices_tp username: from_secret: SECRET_REGISTRY_USERNAME From 744c193b4782592be2a5a0e382f8261f27ef0b94 Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Thu, 9 Feb 2023 15:27:54 +0100 Subject: [PATCH 5/8] Ajout de l'image "test" --- .drone.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a0b0b25..a9fa30d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,4 +19,15 @@ steps: username: from_secret: SECRET_REGISTRY_USERNAME password: - from_secret: SECRET_REGISTRY_PASSWORD \ No newline at end of file + from_secret: SECRET_REGISTRY_PASSWORD + +# docker test + - name: tests + image: mcr.microsoft.com/dotnet/sdk:6.0 + commands: + - cd Sources/ + - dotnet restore LeagueOfLegends.sln + - dotnet test LeagueOfLegends.sln --no-restore + depends_on: [build] + + From bd87c47de2bd0c18c6414d7684fb13b0b1161b6a Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Thu, 9 Feb 2023 15:28:37 +0100 Subject: [PATCH 6/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a9fa30d..fc6948e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,6 +28,6 @@ steps: - cd Sources/ - dotnet restore LeagueOfLegends.sln - dotnet test LeagueOfLegends.sln --no-restore - depends_on: [build] + depends_on: [docker-build-and-push] From ef7468930b1406cb697adfd8e4bc71036b2f73e4 Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Thu, 9 Feb 2023 15:37:34 +0100 Subject: [PATCH 7/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.drone.yml b/.drone.yml index fc6948e..eaafa41 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,4 +30,24 @@ steps: - dotnet test LeagueOfLegends.sln --no-restore depends_on: [docker-build-and-push] +name: code-analysis + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 + commands: + - cd Sources/ + - dotnet restore LeagueOfLegends.sln + - dotnet sonarscanner begin /k:EntityFramework_ConsoDeServices_TP /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} + - dotnet build LeagueOfLegends.sln -c Release --no-restore + - dotnet test LeagueOfLegends.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" + - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport" + - dotnet publish LeagueOfLegends.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release + - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} + secrets: [ SECRET_SONAR_LOGIN ] + settings: + # accessible en ligne de commande par ${PLUGIN_SONAR_HOST} + sonar_host: https://codefirst.iut.uca.fr/sonar/ + # accessible en ligne de commande par ${PLUGIN_SONAR_TOKEN} + sonar_token: + from_secret: SECRET_SONAR_LOGIN + depends_on: [tests] + From 8ed8fca9bbe0234c84bd634ebe4eecfb990f4060 Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Thu, 9 Feb 2023 15:38:12 +0100 Subject: [PATCH 8/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.drone.yml b/.drone.yml index eaafa41..b773b1b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,24 +30,3 @@ steps: - dotnet test LeagueOfLegends.sln --no-restore depends_on: [docker-build-and-push] -name: code-analysis - image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 - commands: - - cd Sources/ - - dotnet restore LeagueOfLegends.sln - - dotnet sonarscanner begin /k:EntityFramework_ConsoDeServices_TP /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - - dotnet build LeagueOfLegends.sln -c Release --no-restore - - dotnet test LeagueOfLegends.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" - - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport" - - dotnet publish LeagueOfLegends.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - secrets: [ SECRET_SONAR_LOGIN ] - settings: - # accessible en ligne de commande par ${PLUGIN_SONAR_HOST} - sonar_host: https://codefirst.iut.uca.fr/sonar/ - # accessible en ligne de commande par ${PLUGIN_SONAR_TOKEN} - sonar_token: - from_secret: SECRET_SONAR_LOGIN - depends_on: [tests] - -