Updated CI
This commit is contained in:
@@ -143,6 +143,6 @@ csharp_space_between_method_declaration_parameter_list_parentheses = false
|
|||||||
csharp_space_between_parentheses = false
|
csharp_space_between_parentheses = false
|
||||||
csharp_space_between_square_brackets = false
|
csharp_space_between_square_brackets = false
|
||||||
|
|
||||||
[*.{xml,csproj,targets,props,json}]
|
[*.{xml,csproj,targets,props,json,yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|||||||
105
.gitlab-ci.yml
105
.gitlab-ci.yml
@@ -6,33 +6,110 @@ variables:
|
|||||||
LANG: "de"
|
LANG: "de"
|
||||||
|
|
||||||
|
|
||||||
debug-job:
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
debug-build:
|
||||||
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
- lnx
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
# branch-coverage
|
|
||||||
#coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
|
|
||||||
# line-coverage
|
|
||||||
coverage: '/Total[^|]*\|\s*([0-9.%]+)/'
|
|
||||||
script:
|
script:
|
||||||
- dotnet restore --no-cache --force
|
- dotnet restore --no-cache --force
|
||||||
- dotnet build -c Debug --nologo --no-restore --no-incremental
|
- dotnet build -c Debug --nologo --no-restore --no-incremental
|
||||||
- dotnet test -c Debug --nologo --no-restore --no-build
|
- mkdir ./artifacts
|
||||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate **/*.nupkg
|
- mv ./AMWD.Common/bin/Debug/*.nupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common/bin/Debug/*.snupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.AspNetCore/bin/Debug/*.nupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.AspNetCore/bin/Debug/*.snupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.EntityFrameworkCore/bin/Debug/*.nupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.EntityFrameworkCore/bin/Debug/*.snupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.Moq/bin/Debug/*.nupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.Moq/bin/Debug/*.snupkg ./artifacts/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- artifacts/*.nupkg
|
||||||
|
- artifacts/*.snupkg
|
||||||
|
expire_in: 7 days
|
||||||
|
|
||||||
|
debug-test:
|
||||||
release-job:
|
stage: test
|
||||||
|
dependencies:
|
||||||
|
- debug-build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
only:
|
- lnx
|
||||||
|
except:
|
||||||
- tags
|
- tags
|
||||||
# branch-coverage
|
# branch-coverage
|
||||||
#coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
|
coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
|
||||||
|
script:
|
||||||
|
- dotnet restore --no-cache --force
|
||||||
|
- dotnet test -c Debug --nologo --no-restore
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
release-build:
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- lnx
|
||||||
|
- amd64
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
script:
|
||||||
|
- dotnet restore --no-cache --force
|
||||||
|
- dotnet build -c Release --nologo --no-restore --no-incremental
|
||||||
|
- mkdir ./artifacts
|
||||||
|
- mv ./AMWD.Common/bin/Release/*.nupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common/bin/Release/*.snupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.AspNetCore/bin/Release/*.nupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.AspNetCore/bin/Release/*.snupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.EntityFrameworkCore/bin/Release/*.nupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.EntityFrameworkCore/bin/Release/*.snupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.Moq/bin/Release/*.nupkg ./artifacts/
|
||||||
|
- mv ./AMWD.Common.Moq/bin/Release/*.snupkg ./artifacts/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- artifacts/*.nupkg
|
||||||
|
- artifacts/*.snupkg
|
||||||
|
expire_in: 1 day
|
||||||
|
|
||||||
|
release-test:
|
||||||
|
stage: test
|
||||||
|
dependencies:
|
||||||
|
- release-build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- lnx
|
||||||
|
- amd64
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
# line-coverage
|
# line-coverage
|
||||||
coverage: '/Total[^|]*\|\s*([0-9.%]+)/'
|
coverage: '/Total[^|]*\|\s*([0-9.%]+)/'
|
||||||
script:
|
script:
|
||||||
- dotnet restore --no-cache --force
|
- dotnet restore --no-cache --force
|
||||||
- dotnet build -c Release --nologo --no-restore --no-incremental
|
- dotnet test -c Release --nologo --no-restore
|
||||||
- dotnet test -c Release --nologo --no-restore --no-build
|
|
||||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate **/*.nupkg
|
|
||||||
|
release-deploy:
|
||||||
|
stage: deploy
|
||||||
|
dependencies:
|
||||||
|
- release-build
|
||||||
|
- release-test
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- lnx
|
||||||
|
- amd64
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
script:
|
||||||
|
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/*.nupkg
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<NrtRevisionFormat>{semvertag:main}{!:-mod}</NrtRevisionFormat>
|
<NrtRevisionFormat>{semvertag:main}{!:-dev}</NrtRevisionFormat>
|
||||||
|
|
||||||
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
|
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
|
||||||
<CopyRefAssembliesToPublishDirectory>false</CopyRefAssembliesToPublishDirectory>
|
<CopyRefAssembliesToPublishDirectory>false</CopyRefAssembliesToPublishDirectory>
|
||||||
|
|||||||
Reference in New Issue
Block a user