Mise à jour de '.drone.yml'
continuous-integration/drone/push Build is failing Details

master
Leana BESSON 2 years ago
parent e38739250c
commit d5382136c4

@ -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]

Loading…
Cancel
Save