|
|
|
@ -10,7 +10,7 @@ def main(ctx):
|
|
|
|
|
"cd Sources",
|
|
|
|
|
"dotnet restore OpenLibraryWS_Wrapper.sln",
|
|
|
|
|
"dotnet build OpenLibraryWS_Wrapper.sln -c Release --no-restore",
|
|
|
|
|
"dotnet publish OpenLibraryWS_Wrapper.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release",
|
|
|
|
|
"dotnet publish OpenLibraryWS_Wrapper.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -19,7 +19,7 @@ def main(ctx):
|
|
|
|
|
"commands":[
|
|
|
|
|
"cd Sources/",
|
|
|
|
|
"dotnet restore OpenLibraryWS_Wrapper.sln",
|
|
|
|
|
"dotnet test OpenLibraryWS_Wrapper.sln --no-restore",
|
|
|
|
|
"dotnet test OpenLibraryWS_Wrapper.sln --no-restore"
|
|
|
|
|
],
|
|
|
|
|
"depends_on": ["build"]
|
|
|
|
|
},
|
|
|
|
@ -40,7 +40,7 @@ def main(ctx):
|
|
|
|
|
"dotnet test OpenLibraryWS_Wrapper.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect 'XPlat Code Coverage'",
|
|
|
|
|
"reportgenerator -reports:'**/coverage.cobertura.xml' -reporttypes:SonarQube -targetdir:'coveragereport'",
|
|
|
|
|
"dotnet publish OpenLibraryWS_Wrapper.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}"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -53,7 +53,7 @@ def main(ctx):
|
|
|
|
|
"path": "/docs",
|
|
|
|
|
},
|
|
|
|
|
"commands":[
|
|
|
|
|
"/entrypoint.sh",
|
|
|
|
|
"/entrypoint.sh"
|
|
|
|
|
],
|
|
|
|
|
"when":{
|
|
|
|
|
"branch": "master"
|
|
|
|
@ -68,7 +68,7 @@ def main(ctx):
|
|
|
|
|
"commands":[
|
|
|
|
|
"cd Sources/OpenLibraryWrapper",
|
|
|
|
|
"dotnet tool install --version 6.5.0 Swashbuckle.AspNetCore.Cli --tool-path /bin",
|
|
|
|
|
"/bin/swagger tofile --output /drone/src/swagger.json bin/Release/net7.0/OpenLibraryWrapper.dll v1",
|
|
|
|
|
"/bin/swagger tofile --output /drone/src/swagger.json bin/Release/net7.0/OpenLibraryWrapper.dll v1"
|
|
|
|
|
],
|
|
|
|
|
"depends_on": ["build"]
|
|
|
|
|
},
|
|
|
|
@ -77,7 +77,7 @@ def main(ctx):
|
|
|
|
|
"name": "deploy-swagger",
|
|
|
|
|
"image": "hub.codefirst.iut.uca.fr/maxime.batista/codefirst-docdeployer",
|
|
|
|
|
"commands":[
|
|
|
|
|
"/entrypoint.sh --type swagger --loc /drone/src/swagger.json",
|
|
|
|
|
"/entrypoint.sh --type swagger --loc /drone/src/swagger.json"
|
|
|
|
|
],
|
|
|
|
|
"depends_on": ["generate-swashbuckle"]
|
|
|
|
|
},
|
|
|
|
|