From b362bbac98654ab75d92f254d9a6a333fcb88c1a Mon Sep 17 00:00:00 2001 From: Maxence LANONE Date: Thu, 6 Oct 2022 08:39:44 +0000 Subject: [PATCH] =?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 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index a59cbaf..a63a914 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ trigger: steps: - name: build - image: mcr.microsoft.com/dotnet/sdk:5.0 + image: mcr.microsoft.com/dotnet/sdk:6.0 commands: - cd Solution1/ - dotnet restore Solution1_CI.sln @@ -16,7 +16,7 @@ steps: - dotnet publish Solution1_CI.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - name: tests - image: mcr.microsoft.com/dotnet/sdk:5.0 + image: mcr.microsoft.com/dotnet/sdk:6.0 commands: - cd Solution1/ - dotnet restore Solution1_CI.sln @@ -24,11 +24,11 @@ steps: depends_on: [build] - name: code-analysis - image: pubhub.codefirst.iut.uca.fr/thbellem/codefirst-dronesonarplugin-dotnet5 + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 commands: - cd Solution1/ - dotnet restore Solution1_CI.sln - - dotnet sonarscanner begin /k:SpotiWish /d:sonar.host.url="https://codefirst.ddns.net/sonar" /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="ConsoleApp1/**" /d:sonar.login=sqp_c61996cc909dc985d862400d1cdf1769627dc7ac + - dotnet sonarscanner begin /k:SpotiWish /d:sonar.host.url="https://codefirst.iut.uca.fr/sonar" /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="ConsoleApp1/**" /d:sonar.login=sqp_c61996cc909dc985d862400d1cdf1769627dc7ac - dotnet build Solution1_CI.sln -c Release --no-restore - dotnet test Solution1_CI.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport" @@ -44,7 +44,8 @@ steps: depends on: [tests] - name: generate-and-deploy-docs - image: pubhub.codefirst.iut.uca.fr/thbellem/codefirst-docdeployer + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer + failure: ignore volumes: - name: docs path: /Document