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

main
Maxence LANONE 3 years ago
parent 82f2143f76
commit b362bbac98

@ -8,7 +8,7 @@ trigger:
steps: steps:
- name: build - name: build
image: mcr.microsoft.com/dotnet/sdk:5.0 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
- cd Solution1/ - cd Solution1/
- dotnet restore Solution1_CI.sln - 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 - dotnet publish Solution1_CI.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- name: tests - name: tests
image: mcr.microsoft.com/dotnet/sdk:5.0 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
- cd Solution1/ - cd Solution1/
- dotnet restore Solution1_CI.sln - dotnet restore Solution1_CI.sln
@ -24,11 +24,11 @@ steps:
depends_on: [build] depends_on: [build]
- name: code-analysis - 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: commands:
- cd Solution1/ - cd Solution1/
- dotnet restore Solution1_CI.sln - 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 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" - 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" - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
@ -44,7 +44,8 @@ steps:
depends on: [tests] depends on: [tests]
- name: generate-and-deploy-docs - 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: volumes:
- name: docs - name: docs
path: /Document path: /Document

Loading…
Cancel
Save