diff --git a/.drone.yml b/.drone.yml index 391f94e..4f07d41 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,16 +14,16 @@ steps: image: mcr.microsoft.com/dotnet/sdk:7.0 commands: - cd notus/ - - dotnet restore notus_without_maui.sln - - dotnet build notus_without_maui.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 - - dotnet publish notus_without_maui.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release + - dotnet restore Notus_without_console_and_maui.sln + - dotnet build Notus_without_console_and_maui.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 + - dotnet publish Notus_without_console_and_maui.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release - name: tests image: mcr.microsoft.com/dotnet/sdk:7.0 commands: - cd notus/ - - dotnet restore notus_without_maui.sln - - dotnet test notus_without_maui.sln --no-restore + - dotnet restore Notus_without_console_and_maui.sln + - dotnet test Notus_without_console_and_maui.sln --no-restore depends_on: [build] - name: sonar @@ -37,12 +37,12 @@ steps: coverage_exclusions: "Notus_UnitTest_Database/**" commands: - cd notus/ - - dotnet restore notus_without_maui.sln + - dotnet restore Notus_without_console_and_maui.sln - dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions=$${coverage_exclusions} /d:sonar.login=$${sonar_token} - - dotnet build notus_without_maui.sln -c Release --no-restore - - dotnet test notus_without_maui.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" + - dotnet build Notus_without_console_and_maui.sln -c Release --no-restore + - dotnet test Notus_without_console_and_maui.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" - reportgenerator -reports:'**/coverage.cobertura.xml' -reporttypes:SonarQube -targetdir:"coveragereport" -verbosity:Verbose - - dotnet publish notus_without_maui.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release + - dotnet publish Notus_without_console_and_maui.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - dotnet sonarscanner end /d:sonar.login=$${sonar_token} branch: - developpement