From 2bab4ce84b4c96e5391285ca617d186aef3edf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Sat, 15 Jun 2024 22:28:23 +0200 Subject: [PATCH] Deleting the MAUI build step of the CI --- .drone.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2417101..e6e8c51 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,6 +10,12 @@ trigger: - push steps: + - name: clean + image: mcr.microsoft.com/dotnet/sdk:7.0 + commands: + - cd Sources/GameAtlas + - dotnet clean GameAtlas.sln + - name: build-Models image: mcr.microsoft.com/dotnet/sdk:7.0 commands: @@ -18,15 +24,6 @@ steps: - dotnet build -c Release --no-restore - dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release - - name: build-MAUI - image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest - environment: - ANDROID_SDK_ROOT: /usr/lib/android-sdk - commands: - - cd Sources/GameAtlas - - dotnet restore GameAtlas.sln - - dotnet build GameAtlas.sln -c Release --no-restore /v:diag /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 - - name: tests image: hub.codefirst.iut.uca.fr/marc.chevaldonne/sdk:7.0 commands: @@ -51,7 +48,7 @@ steps: - dotnet build GameAtlas.sln -c Release --no-restore - dotnet test GameAtlas.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 GameAtlas/GameAtlas.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT + - dotnet publish GameAtlas/GameAtlas.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]