diff --git a/.drone.yml b/.drone.yml index 578a2e0..6641f69 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,30 +10,28 @@ steps: - name: build image: mcr.microsoft.com/dotnet/sdk:7.0 commands: - - cd Solution1/ - - dotnet restore Solution1_CI.sln - - dotnet build Solution1_CI.sln -c Release --no-restore - - dotnet publish Solution1_CI.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release + - dotnet restore LeagueOfLegends.sln + - dotnet build LeagueOfLegends.sln -c Release --no-restore + - dotnet publish LeagueOfLegends.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - name: tests - image: mcr.microsoft.com/dotnet/sdk:5.0 + image: mcr.microsoft.com/dotnet/sdk:7.0 commands: - - cd Solution1/ - - dotnet restore Solution1_CI.sln - - dotnet test Solution1_CI.sln --no-restore + - dotnet restore LeagueOfLegends.sln + - dotnet test LeagueOfLegends.sln --no-restore depends_on: [build] - name: code-analysis - image: pubhub.codefirst.ddns.net/thbellem/codefirst-dronesonarplugin-dotnet5 + image: pubhub.codefirst.iut.uca.fr/thbellem/codefirst-dronesonarplugin-dotnet7 commands: - cd Solution1/ - - dotnet restore Solution1_CI.sln - - dotnet sonarscanner begin /k:SpotiWish /d:sonar.host.url="https://codefirst.ddns.net/sonar" /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="ConsoleApp1/**" /d:sonar.login=sqp_c61996cc909dc985d862400d1cdf1769627dc7ac - - dotnet build Solution1_CI.sln -c Release --no-restore - - dotnet test Solution1_CI.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" + - dotnet restore LeagueOfLegends.sln + - dotnet sonarscanner begin /k:EfCore_Lol_S4 /d:sonar.host.url="https://codefirst.iut.uca.fr/sonar" /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} + - dotnet build LeagueOfLegends.sln -c Release --no-restore + - dotnet test LeagueOfLegends.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 Solution1_CI.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release - - dotnet sonarscanner end /d:sonar.login=sqp_c61996cc909dc985d862400d1cdf1769627dc7ac + - dotnet publish LeagueOfLegends.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} @@ -44,7 +42,7 @@ steps: depends on: [tests] - name: generate-and-deploy-docs - image: pubhub.codefirst.ddns.net/thbellem/codefirst-docdeployer + image: pubhub.codefirst.iut.uca.fr/thbellem/codefirst-docdeployer volumes: - name: docs path: /Document