Update '.drone.yml'
continuous-integration/drone/push Build is failing Details

pull/26/head
Matheo HERSAN 2 years ago
parent c9c2764000
commit 8c6ff94529

@ -17,13 +17,13 @@ steps:
- name: Documentation
path: /Documentation
commands:
- cd src/MangaMap/
- cd MangaMap/
- dotnet restore MangaMap.sln
- dotnet build MangaMap.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
- name: tests
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
commands:
- cd src/MangaMap/
- cd MangaMap/
- dotnet restore MangaMap.sln
- dotnet test MangaMap.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
depends_on: [build]
@ -31,7 +31,7 @@ steps:
- name: code-analysis
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7-maui
commands:
- cd src/MangaMap/
- cd MangaMap/
- dotnet restore MangaMap.sln
- dotnet sonarscanner begin /k:TestCI /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"

Loading…
Cancel
Save