From 16a8b881e51ac6915cc952acd53164569ab12047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Sat, 18 May 2024 08:36:29 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Ajout=20de=20la=20g=C3=A9n=C3=A9rat?= =?UTF-8?q?ion=20de=20la=20documentation=20dans=20la=20CI=20Drone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2e991c3..22f1c76 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,10 +5,9 @@ name: CI trigger: when: branch: - include: - - master - - dev - - CI/CD + - master + - dev + - CI/CD event: - push @@ -21,6 +20,15 @@ steps: - dotnet build -c Release --no-restore - dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release + - name: build-ConsoleApp + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - cd source/Trek-12/ConsoleApp + - dotnet restore + - dotnet build -c Release --no-restore + - dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release + depends_on: [build-Models] + - name: tests image: mcr.microsoft.com/dotnet/sdk:8.0 commands: @@ -48,3 +56,16 @@ steps: - dotnet publish CI-Trek-12.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} depends_on: [tests] + + - name: generate-and-deploy-docs + image: hub.codefirst.iut.uca.fr/maxime.batista/codefirst-docdeployer:latest + failure: ignore + commands: + - /entrypoint.sh -l documentation/doxygen -t doxygen + when: + branch: + - master + - dev + event: + - push + depends_on: [ build-Models, tests ]