|
|
|
@ -77,9 +77,8 @@ steps:
|
|
|
|
|
depends_on: [clone, restore & build]
|
|
|
|
|
|
|
|
|
|
- name: code-inspection
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne:codefirs-dronsonarplugin-dotnet8
|
|
|
|
|
secrets:
|
|
|
|
|
- SECRET_SONAR_LOGIN
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7-maui
|
|
|
|
|
secrets: [ SECRET_SONAR_LOGIN ]
|
|
|
|
|
environment:
|
|
|
|
|
sonar_host: https://codefirst.iut.uca.fr/sonar/
|
|
|
|
|
sonar_token:
|
|
|
|
@ -88,7 +87,7 @@ steps:
|
|
|
|
|
commands:
|
|
|
|
|
- dotnet restore WF_EF_Api/WF_EF_Api.sln
|
|
|
|
|
- dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.login=$${sonar_token}
|
|
|
|
|
- dotnet build WF_EF_Api/WF_EF_Api.sln
|
|
|
|
|
- dotnet build WF_EF_Api/WF_EF_Api.sln -c Release --no-restore
|
|
|
|
|
- dotnet test WF_EF_Api/XUnitTest/XUnitTest.csproj --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
|
|
|
|
|
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
|
|
|
|
|
- dotnet sonarscanner end /d:sonar.login=$${sonar_token_wtf}
|
|
|
|
|