|
|
|
@ -4,6 +4,7 @@ name: CI
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
when:
|
|
|
|
|
branch:
|
|
|
|
|
- master
|
|
|
|
|
event:
|
|
|
|
|
- push
|
|
|
|
@ -12,14 +13,14 @@ steps:
|
|
|
|
|
- name: build
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
|
|
|
|
commands:
|
|
|
|
|
- cd GameAtlas/
|
|
|
|
|
- cd Sources/GameAtlas/
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
|
|
- name: tests
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
|
|
|
|
commands:
|
|
|
|
|
- cd GameAtlas/
|
|
|
|
|
- cd Source/GameAtlas/
|
|
|
|
|
- dotnet restore GameAtlas.sln
|
|
|
|
|
- dotnet test GameAtlas.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
|
|
|
|
|
depends_on: [build]
|
|
|
|
@ -34,7 +35,7 @@ steps:
|
|
|
|
|
sonar_token:
|
|
|
|
|
from_secret: SECRET_SONAR_LOGIN
|
|
|
|
|
commands:
|
|
|
|
|
- cd GameAtlas/
|
|
|
|
|
- cd Sources/GameAtlas/
|
|
|
|
|
- dotnet restore GameAtlas.sln
|
|
|
|
|
- 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
|
|
|
|
|