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
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- 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
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: CI
|
||||
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: build-CoreLibrary
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
commands:
|
||||
- cd Sources
|
||||
- dotnet restore CoreLibrary/CoreLibrary.csproj
|
||||
- dotnet build CoreLibrary/CoreLibrary.csproj -c Release --no-restore
|
||||
- name: build-ConsoleApp
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
commands:
|
||||
- cd Sources
|
||||
- dotnet restore ConsoleApp/ConsoleApp.csproj
|
||||
- dotnet build ConsoleApp/ConsoleApp.csproj -c Release --no-restore
|
||||
- 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