|
|
@ -10,7 +10,15 @@ trigger:
|
|
|
|
- push
|
|
|
|
- push
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
- name: build-Models
|
|
|
|
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:7.0
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
- cd Sources/GameAtlas/Models
|
|
|
|
|
|
|
|
- dotnet restore
|
|
|
|
|
|
|
|
- dotnet build -c Release --no-restore
|
|
|
|
|
|
|
|
- dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: build-MAUI
|
|
|
|
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 Sources/GameAtlas/
|
|
|
|
- cd Sources/GameAtlas/
|
|
|
@ -22,8 +30,8 @@ steps:
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Sources/GameAtlas/
|
|
|
|
- cd Sources/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 --no-restore
|
|
|
|
depends_on: [build]
|
|
|
|
depends_on: [build-Models]
|
|
|
|
|
|
|
|
|
|
|
|
- name: code-analysis
|
|
|
|
- name: code-analysis
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7-maui
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7-maui
|
|
|
@ -37,7 +45,7 @@ steps:
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Sources/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.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
|
|
|
|
- dotnet sonarscanner begin /k:"GameAtlas" /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.login=$${PLUGIN_SONAR_TOKEN} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**"
|
|
|
|
- dotnet build GameAtlas.sln -c Release --no-restore
|
|
|
|
- dotnet build GameAtlas.sln -c Release --no-restore
|
|
|
|
- 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"
|
|
|
|
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
|
|
|
|
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
|
|
|
@ -55,4 +63,4 @@ steps:
|
|
|
|
- master
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- push
|
|
|
|
depends_on: [ build, tests ]
|
|
|
|
depends_on: [ build-Models, tests ]
|
|
|
|