Added UnitTests for TCP
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# The image has to use the same version as the .NET UnitTest project
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
|
||||
variables:
|
||||
@@ -44,14 +43,25 @@ test-debug:
|
||||
- lnx
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG == null
|
||||
# line-coverage
|
||||
#coverage: '/Total[^|]*\|\s*([0-9.%]+)/'
|
||||
# branch-coverage
|
||||
coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
|
||||
script:
|
||||
- dotnet restore --no-cache --force
|
||||
- dotnet test -c Debug --nologo --no-restore
|
||||
|
||||
deploy-debug:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build-debug
|
||||
- test-debug
|
||||
tags:
|
||||
- docker
|
||||
- lnx
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG == null
|
||||
script:
|
||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/*.nupkg
|
||||
|
||||
|
||||
|
||||
build-release:
|
||||
stage: build
|
||||
@@ -85,15 +95,12 @@ test-release:
|
||||
- lnx
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG != null
|
||||
# line-coverage
|
||||
#coverage: '/Total[^|]*\|\s*([0-9.%]+)/'
|
||||
# branch-coverage
|
||||
coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
|
||||
script:
|
||||
- dotnet restore --no-cache --force
|
||||
- dotnet test -c Release --nologo --no-restore
|
||||
|
||||
deploy:
|
||||
deploy-release:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build-release
|
||||
|
||||
Reference in New Issue
Block a user