|
|
|
@ -8,15 +8,11 @@ trigger:
|
|
|
|
|
- push
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: restore
|
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
|
commands:
|
|
|
|
|
- cd Sources
|
|
|
|
|
- dotnet restore mastermindSansMaui.sln
|
|
|
|
|
- name: build
|
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
|
commands:
|
|
|
|
|
- cd Sources
|
|
|
|
|
- dotnet restore mastermindSansMaui.sln
|
|
|
|
|
- dotnet build mastermindSansMaui.sln -c Release --no-restore
|
|
|
|
|
- dotnet publish mastermindSansMaui.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
|
|
|
|
depends_on: [restore]
|
|
|
|
@ -24,6 +20,7 @@ steps:
|
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
|
commands:
|
|
|
|
|
- cd Sources/
|
|
|
|
|
- dotnet restore mastermindSansMaui.sln
|
|
|
|
|
- dotnet test mastermindSansMaui.sln --no-restore
|
|
|
|
|
depends_on: [build]
|
|
|
|
|
- name: code-inspection
|
|
|
|
@ -38,6 +35,7 @@ steps:
|
|
|
|
|
depends_on: [build]
|
|
|
|
|
commands:
|
|
|
|
|
- cd Sources/
|
|
|
|
|
- dotnet restore mastermindSansMaui.sln
|
|
|
|
|
- dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions=$${coverage_exclusions} /d:sonar.login=$${sonar_token}
|
|
|
|
|
- dotnet build mastermindSansMaui.sln -c Release --no-restore
|
|
|
|
|
- dotnet test mastermindSansMaui.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
|
|
|
|
|