|
|
@ -10,7 +10,6 @@ steps:
|
|
|
|
- name: build
|
|
|
|
- name: build
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Verax_API_EF
|
|
|
|
|
|
|
|
- cd Verax_API_EF
|
|
|
|
- cd Verax_API_EF
|
|
|
|
- dotnet restore Verax_API_EF.sln
|
|
|
|
- dotnet restore Verax_API_EF.sln
|
|
|
|
- dotnet build Verax_API_EF.sln -c Release --no-restore
|
|
|
|
- dotnet build Verax_API_EF.sln -c Release --no-restore
|
|
|
@ -19,7 +18,6 @@ steps:
|
|
|
|
- name: tests
|
|
|
|
- name: tests
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Verax_API_EF
|
|
|
|
|
|
|
|
- cd Verax_API_EF
|
|
|
|
- cd Verax_API_EF
|
|
|
|
- dotnet restore Verax_API_EF.sln
|
|
|
|
- dotnet restore Verax_API_EF.sln
|
|
|
|
- dotnet test Verax_API_EF.sln --no-restore
|
|
|
|
- dotnet test Verax_API_EF.sln --no-restore
|
|
|
@ -34,7 +32,6 @@ steps:
|
|
|
|
from_secret: SECRET_SONAR_LOGIN # Secret de Drone
|
|
|
|
from_secret: SECRET_SONAR_LOGIN # Secret de Drone
|
|
|
|
project_key: Verax_API_EF
|
|
|
|
project_key: Verax_API_EF
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Verax_API_EF/
|
|
|
|
|
|
|
|
- cd Verax_API_EF/
|
|
|
|
- cd Verax_API_EF/
|
|
|
|
- dotnet restore Verax_API_EF.sln
|
|
|
|
- dotnet restore Verax_API_EF.sln
|
|
|
|
- dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Unit_Test_EF/**","API_Unit_Test/**","API_Tests_Console/**","Test_Console_EF/**","DbContextLib/Migrations/**","StubbedContextLib/**","API/Program.cs" /d:sonar.login=$${sonar_token}
|
|
|
|
- dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Unit_Test_EF/**","API_Unit_Test/**","API_Tests_Console/**","Test_Console_EF/**","DbContextLib/Migrations/**","StubbedContextLib/**","API/Program.cs" /d:sonar.login=$${sonar_token}
|
|
|
@ -65,6 +62,7 @@ steps:
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- master
|
|
|
|
|
|
|
|
- rebase
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy-container
|
|
|
|
- name: deploy-container
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|