From 18fc0b321d61571de5e413e10ab9c69c624a36f8 Mon Sep 17 00:00:00 2001 From: Remi LAVERGNE Date: Mon, 15 May 2023 10:34:09 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4a4dd7c..526d05a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,9 +1,23 @@ kind: pipeline type: docker -name: master +name: CI trigger: - branch: - - master event: - - push \ No newline at end of file + - push + +steps: + - name: build + image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest + commands: + - cd GameAtlas/ + - dotnet restore GameAtlas.sln + - dotnet build GameAtlas.sln -c Release --no-restore /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/codefirst-dotnet7-maui:latest + commands: + - cd GameAtlas/ + - dotnet restore GameAtlas.sln + - dotnet test GameAtlas.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" + depends_on: [build] \ No newline at end of file