Merge branch 'Merge_API_EF' of https://codefirst.iut.uca.fr/git/WhatTheFantasy/WF-PmAPI into Merge_API_EF
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
c13a864252
@ -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 WF_EF_Api/XUnitTest/XUnitTest.csproj
|
||||||
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 WF_EF_Api/WfApi/WfApi.csproj -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]
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue