GitLab CI führt UnitTests aus
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
image: mcr.microsoft.com/dotnet/sdk
|
||||
|
||||
variables:
|
||||
LANG: "de"
|
||||
TZ: "Europe/Berlin"
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- publish
|
||||
|
||||
build:
|
||||
stage: build
|
||||
@@ -9,4 +15,22 @@ build:
|
||||
- docker
|
||||
script:
|
||||
- bash build.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- artifacts/*.nupkg
|
||||
- artifacts/*.snupkg
|
||||
expire_in: 1 day
|
||||
|
||||
test:
|
||||
stage: test
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- dotnet test -c Release
|
||||
|
||||
publish:
|
||||
stage: publish
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- dotnet nuget push -k $APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/*.nupkg
|
||||
|
||||
Reference in New Issue
Block a user