|
|
@ -19,9 +19,9 @@ steps:
|
|
|
|
- dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
|
|
|
- dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
|
|
|
|
|
|
|
|
|
|
|
- name: tests
|
|
|
|
- name: tests
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/sdk:7.0
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:7.0
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Sources/GameAtlas/
|
|
|
|
- cd Sources/GameAtlas
|
|
|
|
- dotnet restore GameAtlas-CI.sln
|
|
|
|
- dotnet restore GameAtlas-CI.sln
|
|
|
|
- dotnet test GameAtlas-CI.sln --no-restore
|
|
|
|
- dotnet test GameAtlas-CI.sln --no-restore
|
|
|
|
depends_on: [build-Models]
|
|
|
|
depends_on: [build-Models]
|
|
|
@ -36,7 +36,7 @@ steps:
|
|
|
|
sonar_token:
|
|
|
|
sonar_token:
|
|
|
|
from_secret: SECRET_SONAR_LOGIN
|
|
|
|
from_secret: SECRET_SONAR_LOGIN
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Sources/GameAtlas/
|
|
|
|
- cd Sources/GameAtlas
|
|
|
|
- dotnet restore GameAtlas-CI.sln
|
|
|
|
- dotnet restore GameAtlas-CI.sln
|
|
|
|
- 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 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-CI.sln -c Release --no-restore
|
|
|
|
- dotnet build GameAtlas-CI.sln -c Release --no-restore
|
|
|
|