Déploiement
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
53e4602edb
commit
446a8f4902
@ -1,23 +1,59 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: CI
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
trigger:
|
||||||
- push
|
event:
|
||||||
|
- push
|
||||||
steps:
|
|
||||||
- name: generate-and-deploy-docs
|
steps:
|
||||||
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
- name: build-CoreLibrary
|
||||||
failure: ignore
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
volumes:
|
commands:
|
||||||
- name: docs
|
- cd Sources
|
||||||
path: /docs
|
- dotnet restore CoreLibrary/CoreLibrary.csproj
|
||||||
commands:
|
- dotnet build CoreLibrary/CoreLibrary.csproj -c Release --no-restore
|
||||||
- /entrypoint.sh
|
- name: build-ConsoleApp
|
||||||
when:
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
branch:
|
commands:
|
||||||
- master
|
- cd Sources
|
||||||
event:
|
- dotnet restore ConsoleApp/ConsoleApp.csproj
|
||||||
- push
|
- dotnet build ConsoleApp/ConsoleApp.csproj -c Release --no-restore
|
||||||
- pull_request
|
- name: build-UnitTesting
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
commands:
|
||||||
|
- cd Sources
|
||||||
|
- dotnet restore UnitTesting/UnitTesting.csproj
|
||||||
|
- dotnet build UnitTesting/UnitTesting.csproj -c Release --no-restore
|
||||||
|
- 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
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
commands:
|
||||||
|
- cd Sources/
|
||||||
|
- dotnet restore UnitTesting/UnitTesting.csproj
|
||||||
|
- dotnet test UnitTesting/UnitTesting.csproj --no-restore
|
||||||
|
- name: generate-and-deploy-docs
|
||||||
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
||||||
|
failure: ignore
|
||||||
|
volumes:
|
||||||
|
- name: docs
|
||||||
|
path: /docs
|
||||||
|
commands:
|
||||||
|
- /entrypoint.sh
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
Loading…
Reference in new issue