From d5382136c4aeadd0c889605bd7ef728c7312619e Mon Sep 17 00:00:00 2001 From: Leana BESSON Date: Fri, 9 Jun 2023 23:33:21 +0200 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 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index bc26e2f..691ea6b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: Wikipet's_without_views.sln +name: Wikipets_without_views.sln trigger: event: @@ -11,16 +11,16 @@ steps: image: mcr.microsoft.com/dotnet/sdk:7.0 commands: - cd Sources/ - - dotnet restore Wikipet's_without_views.sln - - dotnet build Wikipet's_without_views.sln -c Release --no-restore + - dotnet restore Wikipets_without_views.sln + - dotnet build Wikipets_without_views.sln -c Release --no-restore depends_on: [clone] #- name: tests # image: mcr.microsoft.com/dotnet/sdk:7.0 # commands: # - cd Sources/ - # - dotnet restore Wikipet's_without_views.sln - # - dotnet test Wikipet's_without_views.sln --no-restore + # - dotnet restore Wikipets_without_views.sln + # - dotnet test Wikipets_without_views.sln --no-restore # depends_on: [build] - name: code-analysis @@ -34,12 +34,12 @@ steps: coverage_exclusions: "Tests/**" commands: - cd Sources/ - - dotnet restore Wikipet's_without_views.sln + - dotnet restore Wikipets_without_views.sln - dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions=$${coverage_exclusions} /d:sonar.login=$${sonar_token} - - dotnet build Wikipet's_without_views.sln -c Release --no-restore - #- dotnet test Wikipet's_without_views.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" + - dotnet build Wikipets_without_views.sln -c Release --no-restore + #- dotnet test Wikipets_without_views.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 Wikipet's_without_views.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release + - dotnet publish Wikipets_without_views.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - dotnet sonarscanner end /d:sonar.login=$${sonar_token} depends_on: [build]