- Building within one container - Updated UnitTest references - Extending DebugLocal
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# The image has to use the same version as the .NET UnitTest project
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
|
|
|
variables:
|
|
TZ: "Europe/Berlin"
|
|
LANG: "de"
|
|
|
|
|
|
debug-job:
|
|
tags:
|
|
- docker
|
|
except:
|
|
- tags
|
|
# branch-coverage
|
|
#coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
|
|
# line-coverage
|
|
coverage: '/Total[^|]*\|\s*([0-9.%]+)/'
|
|
script:
|
|
- dotnet restore --no-cache --force
|
|
- dotnet build -c Debug --nologo --no-restore --no-incremental
|
|
- dotnet test -c Debug --nologo --no-restore --no-build
|
|
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate **/*.nupkg
|
|
|
|
|
|
release-job:
|
|
tags:
|
|
- docker
|
|
only:
|
|
- tags
|
|
# branch-coverage
|
|
#coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
|
|
# line-coverage
|
|
coverage: '/Total[^|]*\|\s*([0-9.%]+)/'
|
|
script:
|
|
- dotnet restore --no-cache --force
|
|
- dotnet build -c Release --nologo --no-restore --no-incremental
|
|
- 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
|