diff --git a/.drone.yml b/.drone.yml index 909ea01..2f0b061 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,3 +22,54 @@ steps: - dotnet test BlazorApp.sln --no-restore depends_on: [build] + - name: code-analysis + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 + commands: + - cd Code/ + - dotnet restore BlazorApp.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 build BlazorApp.sln -c Release --no-restore + - dotnet test BlazorApp.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 BlazorApp.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release + - dotnet sonarscanner end /d:sonar.login=$$$${PLUGIN_SONAR_TOKEN} + secrets: [ SECRET_SONAR_LOGIN ] + settings: + # accessible en ligne de commande par $${PLUGIN_SONAR_HOST} + sonar_host: https://codefirst.iut.uca.fr/sonar/ + # accessible en ligne de commande par $${PLUGIN_SONAR_TOKEN} + sonar_token: + from_secret: SECRET_SONAR_LOGIN + depends_on: [tests] + + - name: generate-and-deploy-docs + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer + failure: ignore + volumes: + - name: docs + path: /docs + commands: + - /entrypoint.sh + when: + branch: + - master + depends_on: [ build ] + + - name: docker-build + image: plugins/docker + settings: + dockerfile: Code/Dockerfile + context: . + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/my-group/my-application-client + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD + when: + branch: + - master + +volumes: +- name: docs + temp: {} diff --git a/.vs/Blazor/FileContentIndex/22a35d45-3cd4-491d-8551-b19dc72e3d41.vsidx b/.vs/Blazor/FileContentIndex/2417c474-241f-415c-ae6a-2998c3d89bf7.vsidx similarity index 56% rename from .vs/Blazor/FileContentIndex/22a35d45-3cd4-491d-8551-b19dc72e3d41.vsidx rename to .vs/Blazor/FileContentIndex/2417c474-241f-415c-ae6a-2998c3d89bf7.vsidx index 661f9b3..2fb9d4b 100644 Binary files a/.vs/Blazor/FileContentIndex/22a35d45-3cd4-491d-8551-b19dc72e3d41.vsidx and b/.vs/Blazor/FileContentIndex/2417c474-241f-415c-ae6a-2998c3d89bf7.vsidx differ diff --git a/.vs/Blazor/FileContentIndex/81b01bb0-3adc-406c-96cd-754458236d7e.vsidx b/.vs/Blazor/FileContentIndex/81b01bb0-3adc-406c-96cd-754458236d7e.vsidx new file mode 100644 index 0000000..ebc4106 Binary files /dev/null and b/.vs/Blazor/FileContentIndex/81b01bb0-3adc-406c-96cd-754458236d7e.vsidx differ diff --git a/.vs/Blazor/FileContentIndex/afe1b327-15c3-41aa-9a84-e2cbdd01c6b8.vsidx b/.vs/Blazor/FileContentIndex/afe1b327-15c3-41aa-9a84-e2cbdd01c6b8.vsidx deleted file mode 100644 index d9967d5..0000000 Binary files a/.vs/Blazor/FileContentIndex/afe1b327-15c3-41aa-9a84-e2cbdd01c6b8.vsidx and /dev/null differ diff --git a/.vs/Blazor/v17/.wsuo b/.vs/Blazor/v17/.wsuo index 9f5e80f..9f192e5 100644 Binary files a/.vs/Blazor/v17/.wsuo and b/.vs/Blazor/v17/.wsuo differ diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index 7f89332..5585662 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/Code/ProjetBlazor/Dockerfile b/Code/Dockerfile similarity index 100% rename from Code/ProjetBlazor/Dockerfile rename to Code/Dockerfile