Deleting the MAUI build step of the CI
continuous-integration/drone/push Build is failing Details

master
Rémi LAVERGNE 10 months ago
parent ff464f0ec4
commit 2bab4ce84b

@ -10,6 +10,12 @@ trigger:
- push - push
steps: steps:
- name: clean
image: mcr.microsoft.com/dotnet/sdk:7.0
commands:
- cd Sources/GameAtlas
- dotnet clean GameAtlas.sln
- name: build-Models - name: build-Models
image: mcr.microsoft.com/dotnet/sdk:7.0 image: mcr.microsoft.com/dotnet/sdk:7.0
commands: commands:
@ -18,15 +24,6 @@ steps:
- dotnet build -c Release --no-restore - dotnet build -c Release --no-restore
- dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release - 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 - name: tests
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/sdk:7.0 image: hub.codefirst.iut.uca.fr/marc.chevaldonne/sdk:7.0
commands: commands:
@ -51,7 +48,7 @@ steps:
- dotnet build GameAtlas.sln -c Release --no-restore - 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" - 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" - 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} - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
depends_on: [tests] depends_on: [tests]

Loading…
Cancel
Save