Mise à jour de '.drone.yml'
continuous-integration/drone/push Build encountered an error Details

master
Céleste BARBOSA 11 months ago
parent 853d486439
commit 1af2e81334

@ -15,21 +15,7 @@ steps:
- dotnet restore mastermindSansMaui.sln
- dotnet build mastermindSansMaui.sln -c Release --no-restore
- dotnet publish mastermindSansMaui.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release
#- name: build-MauiSpark
# image: mcr.microsoft.com/dotnet/sdk:8.0
# commands:
# - mkdir /usr/lib/android-sdk
# - cd /usr/lib/android-sdk
# - wget -O commandlinetools.zip https://dl.google.com/android/repository/commandlinetools-linux-9123335_latest.zip
# - apt update && apt install unzip default-jdk -y
# - unzip commandlinetools.zip
# - yes | /usr/lib/android-sdk/cmdline-tools/bin/sdkmanager "platform-tools" "platforms;android-34" "build-tools;34.0.0" --sdk_root=/usr/lib/android-sdk/
# - cd /drone/src/Sources
# - dotnet --version
# - dotnet workload install maui-android
# - dotnet restore MauiSpark/MauiSpark.csproj
# - dotnet build MauiSpark/MauiSpark.csproj -c Release --no-restore /p:AndroidSdkDirectory=/usr/lib/android-sdk/ -property:Aapt2ToolPath=/usr/lib/android-sdk/build-tools/34.0.0
- name: tests
- name: tests
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- cd Sources/
@ -45,6 +31,7 @@ steps:
from_secret: sonar_token
project_key: celestebarbosa-mastermind
coverage_exclusions: "UnitTesting/**"
depends_on: [build, tests]
commands:
- cd Sources/
- dotnet restore mastermindSansMaui.sln

Loading…
Cancel
Save