newBranch
Victor Perez NGOUNOU 2 years ago
parent 54ee50421f
commit 013ddde9b3

@ -10,14 +10,12 @@ steps:
- name: build - name: build
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
- cd Sources/
- dotnet restore MySolution.sln - dotnet restore MySolution.sln
- dotnet build MySolution.sln -c Release --no-restore - dotnet build MySolution.sln -c Release --no-restore
- name: tests - name: tests
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
- cd Sources/
- dotnet restore MySolution.sln - dotnet restore MySolution.sln
- dotnet test MySolution.sln --no-restore - dotnet test MySolution.sln --no-restore
depends_on: [ build ] depends_on: [ build ]
@ -25,7 +23,6 @@ steps:
- 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/
- dotnet restore MySolution.sln - dotnet restore MySolution.sln
- dotnet sonarscanner begin /k:$REPO_NAME /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:$REPO_NAME /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 MySolution.sln -c Release --no-restore - dotnet build MySolution.sln -c Release --no-restore

Loading…
Cancel
Save