Mise à jour de '.drone.yml'
continuous-integration/drone/push Build encountered an error Details

pull/32/head
Nicolas BLONDEAU 2 years ago
parent b63f83390f
commit ae7b3af37f

@ -25,4 +25,34 @@ steps:
- dotnet restore MineGuide_linuxOnly.sln
- dotnet build MineGuide_linuxOnly.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
- dotnet publish MineGuide_linuxOnly.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release
depends_on: [clone]
depends_on: [clone]
- name: tests
image: mcr.microsoft.com/dotnet/sdk:7.0
commands:
- cd Sources/
- dotnet restore MineGuide.sln
- dotnet test MineGuide.sln --no-restore
depends_on: [build_net7, build_maui]
- name: code-inspection-linux-only
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7
secrets: [ SECRET_SONAR_LOGIN ]
settings:
sonar_host: https://codefirst.iut.uca.fr/sonar/
sonar_token: sonar_token
from_secret: SECRET_SONAR_LOGIN
commands:
- cd Sources/
- dotnet restore MineGuide_linuxOnly.sln
- dotnet sonarscanner begin /k:MineGuide_linuxOnly1.0 /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 MineGuide_linuxOnly.sln -c Release --no-restore
- dotnet test MineGuide_linuxOnly.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 MineGuide_linuxOnly.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
when:
event:
- push
depends_on: [tests]
Loading…
Cancel
Save