pull/3/head
nalambaraa 3 years ago
commit b047f81885

@ -14,28 +14,28 @@ steps:
path: /docs path: /docs
commands: commands:
- cd Sources/MaSoluction - cd Sources/MaSoluction
- dotnet restore MaSolution.sln - dotnet restore MaSoluction.sln
- dotnet build MaSolution.sln -c Release --no-restore - dotnet build MaSoluction.sln -c Release --no-restore
- dotnet publish MaSolution.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - dotnet publish MaSoluction.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- name: tests - name: tests
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
- cd Sources/MaSoluction - cd Sources/MaSoluction
- dotnet restore MaSolution.sln - dotnet restore MaSoluction.sln
- dotnet test MaSolution.sln --no-restore - dotnet test MaSoluction.sln --no-restore
depends_on: [build] depends_on: [build]
- name: code-analysis - name: code-analysis
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6
commands: commands:
- cd Sources/MaSoluction - cd Sources/MaSoluction
- dotnet restore MaSolution.sln - dotnet restore MaSoluction.sln
- dotnet sonarscanner begin /k:Test /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:Test /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 build MaSolution.sln -c Release --no-restore - dotnet build MaSoluction.sln -c Release --no-restore
- dotnet test MaSolution.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" - dotnet test MaSoluction.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"
- dotnet publish MaSolution.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - dotnet publish MaSoluction.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
secrets: [ SECRET_SONAR_LOGIN ] secrets: [ SECRET_SONAR_LOGIN ]
settings: settings:

@ -1,2 +1,3 @@
# Dice_App # Dice_App

Loading…
Cancel
Save