From e9549db262df0badbd7168e2ab41dadec9ca0c5b Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Thu, 8 Jun 2023 18:42:57 +0200 Subject: [PATCH 1/2] Add reference to coverlet --- .drone.yml | 4 ++-- src/Banquale/UnitTest/UnitTest.csproj | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 08e8026..164034d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,8 +40,8 @@ steps: - dotnet sonarscanner begin /k:"Banquale" /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - dotnet build Banquale.sln -c Release --no-restore - dotnet test Banquale.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 Banquale/Banquale.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk + - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport" + - dotnet publish Banquale/Banquale.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} depends_on: [tests] diff --git a/src/Banquale/UnitTest/UnitTest.csproj b/src/Banquale/UnitTest/UnitTest.csproj index a355ab2..e6220e6 100644 --- a/src/Banquale/UnitTest/UnitTest.csproj +++ b/src/Banquale/UnitTest/UnitTest.csproj @@ -16,6 +16,10 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + From f5455a687da4e0103ba71171254d46960932ca90 Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Thu, 8 Jun 2023 18:45:13 +0200 Subject: [PATCH 2/2] Run CI on CI branches --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 164034d..efe782f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,7 @@ name: CI trigger: branch: - master + - ci/* event: - push