⚗️ try fix CI (sonar)
continuous-integration/drone/push Build is failing Details

pull/15/head
Alexandre Agostinho 2 years ago
parent 6b87750bbd
commit 4350a9c3fc

@ -39,12 +39,12 @@ steps:
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7
commands:
- cd MCTG/
- dotnet restore MCTGApp/MCTGApp.csproj
- dotnet restore SAE-2.01.sln
- dotnet sonarscanner begin /k:gitrepotest /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
- dotnet build MCTGApp/MCTGApp.csproj -c Release --no-restore
- dotnet test MCTGApp/MCTGApp.csproj --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
- dotnet build SAE-2.01.sln -c Release --no-restore
- dotnet test SAE-2.01.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 MCTGApp/MCTGApp.csproj -c Release --no-restore -o CI_PROJECT_DIR/build/release
- dotnet publish SAE-2.01.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
secrets: [ SECRET_SONAR_LOGIN ]
settings:

Loading…
Cancel
Save