Mise à jour de '.drone.yml'
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
831a65f244
commit
0cacb3a3ed
@ -1,82 +1,82 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: CI_ApiPm
|
name: CI_ApiPm
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
branch:
|
branch:
|
||||||
exclude:
|
exclude:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: retore & build
|
- name: retore & build
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
commands:
|
commands:
|
||||||
- dotnet build --configuration Release
|
- dotnet build WF_EF_Api/WF_EF_Api.sln --configuration Release
|
||||||
depend_on: [clone]
|
depend_on: [clone]
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
commands:
|
commands:
|
||||||
- dotnet test
|
- dotnet test
|
||||||
depends_on: [retore & build]
|
depends_on: [retore & build]
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
commands:
|
commands:
|
||||||
- dotnet publish -c Release -o out
|
- dotnet publish -c Release -o out
|
||||||
depends_on: [retore & build, test]
|
depends_on: [retore & build, test]
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: CI_ApiPm_Master
|
name: CI_ApiPm_Master
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: doc
|
- name: doc
|
||||||
temp: {}
|
temp: {}
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: retore & build
|
- name: retore & build
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
commands:
|
commands:
|
||||||
- dotnet build --configuration Release
|
- dotnet build --configuration Release
|
||||||
depend_on: [clone]
|
depend_on: [clone]
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
commands:
|
commands:
|
||||||
- dotnet test
|
- dotnet test
|
||||||
depends_on: [retore & build]
|
depends_on: [retore & build]
|
||||||
|
|
||||||
- name: generate doc
|
- name: generate doc
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
volumes:
|
volumes:
|
||||||
- name: doc
|
- name: doc
|
||||||
path: /doc
|
path: /doc
|
||||||
commands:
|
commands:
|
||||||
- dotnet new tool-manifest
|
- dotnet new tool-manifest
|
||||||
- dotnet tool install NSwag.ConsoleCore
|
- dotnet tool install NSwag.ConsoleCore
|
||||||
- dotnet restore
|
- dotnet restore
|
||||||
- cd WF_EF_Api/WfApi
|
- cd WF_EF_Api/WfApi
|
||||||
- dotnet nswag aspnetcore2openapi /output:/doc/swagger.json
|
- dotnet nswag aspnetcore2openapi /output:/doc/swagger.json
|
||||||
depends_on: [clone, retore & build]
|
depends_on: [clone, retore & build]
|
||||||
|
|
||||||
#- name: code-inspection
|
#- name: code-inspection
|
||||||
# image: hub.codefirst.iut.uca.fr/marc.chevaldonne:codefirs-dronsonarplugin-dotnet8
|
# image: hub.codefirst.iut.uca.fr/marc.chevaldonne:codefirs-dronsonarplugin-dotnet8
|
||||||
# secret: [SECRET_SONAR_LOGIN]
|
# secret: [SECRET_SONAR_LOGIN]
|
||||||
# A FINIR
|
# A FINIR
|
||||||
- name: publish
|
- name: publish
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
commands:
|
commands:
|
||||||
- dotnet publish -c Release -o out
|
- dotnet publish -c Release -o out
|
||||||
depends_on: [retore & build, test]
|
depends_on: [retore & build, test]
|
Loading…
Reference in new issue