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

pull/68/head
Rémi LAVERGNE 2 years ago
parent b24804f6b8
commit 5eff2ef062

@ -4,6 +4,7 @@ name: CI
trigger: trigger:
when: when:
branch:
- master - master
event: event:
- push - push
@ -12,14 +13,14 @@ steps:
- name: build - name: build
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
commands: commands:
- cd GameAtlas/ - cd Sources/GameAtlas/
- dotnet restore GameAtlas.sln - dotnet restore GameAtlas.sln
- dotnet build GameAtlas.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 - dotnet build GameAtlas.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
- name: tests - name: tests
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
commands: commands:
- cd GameAtlas/ - cd Source/GameAtlas/
- dotnet restore GameAtlas.sln - dotnet restore GameAtlas.sln
- dotnet test GameAtlas.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" - dotnet test GameAtlas.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
depends_on: [build] depends_on: [build]
@ -34,7 +35,7 @@ steps:
sonar_token: sonar_token:
from_secret: SECRET_SONAR_LOGIN from_secret: SECRET_SONAR_LOGIN
commands: commands:
- cd GameAtlas/ - cd Sources/GameAtlas/
- dotnet restore GameAtlas.sln - dotnet restore GameAtlas.sln
- dotnet sonarscanner begin /k:"GameAtlas" /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - dotnet sonarscanner begin /k:"GameAtlas" /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
- dotnet build GameAtlas.sln -c Release --no-restore - dotnet build GameAtlas.sln -c Release --no-restore

Loading…
Cancel
Save