Merge branch 'master' of https://codefirst.iut.uca.fr/git/leana.besson/BACHELARD_Benjamin-BESSON_Leana
continuous-integration/drone/push Build is passing Details

master
Leana BESSON 2 years ago
commit 61ff70a607

@ -15,32 +15,12 @@ steps:
- 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 Wikipets_without_views.sln
# - dotnet test Wikipets_without_views.sln --no-restore
# depends_on: [build]
- name: code-analysis
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7
secrets: [ SECRET_SONAR_LOGIN ]
environment:
sonar_host: https://codefirst.iut.uca.fr/sonar/
sonar_token:
from_secret: SECRET_SONAR_LOGIN
project_key: Wikipets2023
coverage_exclusions: "Tests/**"
- name: tests
image: mcr.microsoft.com/dotnet/sdk:7.0
commands:
- cd Sources/
- 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 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 Wikipets_without_views.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- dotnet sonarscanner end /d:sonar.login=$${sonar_token}
- dotnet test Wikipets_without_views.sln --no-restore
depends_on: [build]
- name: generate-and-deploy-docs

Loading…
Cancel
Save