From a73a8710fb42594ce16d6c83c505445ffc2b3d37 Mon Sep 17 00:00:00 2001 From: Maxence LANONE Date: Wed, 8 Mar 2023 11:37:19 +0100 Subject: [PATCH 1/4] =?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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index a4c7efa..e60eaa7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,6 +11,7 @@ steps: - name: build image: mcr.microsoft.com/dotnet/sdk:7.0 commands: + - cd Sources/ - dotnet restore LeagueOfLegends.sln - dotnet build LeagueOfLegends.sln -c Release --no-restore - dotnet publish LeagueOfLegends.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release @@ -18,6 +19,7 @@ steps: - name: tests image: mcr.microsoft.com/dotnet/sdk:7.0 commands: + - cd Sources/ - dotnet restore LeagueOfLegends.sln - dotnet test LeagueOfLegends.sln --no-restore depends_on: [build] @@ -25,6 +27,7 @@ steps: - name: code-analysis image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7 commands: + - cd Sources/ - dotnet restore LeagueOfLegends.sln - dotnet sonarscanner begin /k:EfCore_Lol_S4 /d:sonar.host.url="https://codefirst.iut.uca.fr/sonar" /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - dotnet build LeagueOfLegends.sln -c Release --no-restore From e05f9d0e261b9932f6d615bbd5443d5f782e00f8 Mon Sep 17 00:00:00 2001 From: Maxence LANONE Date: Wed, 8 Mar 2023 11:43:14 +0100 Subject: [PATCH 2/4] =?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 e60eaa7..817daa2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,7 +29,7 @@ steps: commands: - cd Sources/ - dotnet restore LeagueOfLegends.sln - - dotnet sonarscanner begin /k:EfCore_Lol_S4 /d:sonar.host.url="https://codefirst.iut.uca.fr/sonar" /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} + - dotnet sonarscanner begin /k:EfCore_Lol_S4 /d:sonar.host.url="https://codefirst.iut.uca.fr/sonar" /d:sonar.coverage.exclusions="Tests/ConsoleDB/**" /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /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" From 1b536c3a8c76587db84cca4e1362c40ababfee61 Mon Sep 17 00:00:00 2001 From: Maxence LANONE Date: Wed, 8 Mar 2023 11:59:36 +0100 Subject: [PATCH 3/4] =?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 817daa2..99eedac 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,7 +29,7 @@ steps: commands: - cd Sources/ - dotnet restore LeagueOfLegends.sln - - dotnet sonarscanner begin /k:EfCore_Lol_S4 /d:sonar.host.url="https://codefirst.iut.uca.fr/sonar" /d:sonar.coverage.exclusions="Tests/ConsoleDB/**" /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} + - dotnet sonarscanner begin /k:EfCore_Lol_S4 /d:sonar.host.url="https://codefirst.iut.uca.fr/sonar" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /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" From 3627d69420a86be113a214e4001a1520981b0859 Mon Sep 17 00:00:00 2001 From: Maxence LANONE Date: Wed, 8 Mar 2023 12:02:48 +0100 Subject: [PATCH 4/4] =?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 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 99eedac..f472699 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,20 +42,20 @@ steps: # accessible en ligne de commande par $${PLUGIN_SONAR_TOKEN} sonar_token: from_secret: SECRET_SONAR_LOGIN - depends on: [tests] + depends on: [tests] # docker image build - - name: docker-build-and-push - image: plugins/docker - settings: - dockerfile: Dockerfile - context: WebApiLol - registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/maxence.lanone/EfCore_LoL_S4 - username: - from_secret: SECRET_REGISTRY_USERNAME - password: - from_secret: SECRET_REGISTRY_PASSWORD +# - name: docker-build-and-push +# image: plugins/docker + # settings: + # dockerfile: Dockerfile + # context: WebApiLol + # registry: hub.codefirst.iut.uca.fr + # repo: hub.codefirst.iut.uca.fr/maxence.lanone/EfCore_LoL_S4 + # username: + # from_secret: SECRET_REGISTRY_USERNAME + # password: + # from_secret: SECRET_REGISTRY_PASSWORD volumes: - name: docs