GitLab CI führt UnitTests aus
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
image: mcr.microsoft.com/dotnet/sdk
|
image: mcr.microsoft.com/dotnet/sdk
|
||||||
|
|
||||||
|
variables:
|
||||||
|
LANG: "de"
|
||||||
|
TZ: "Europe/Berlin"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
|
- publish
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -9,4 +15,22 @@ build:
|
|||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- bash build.sh
|
- 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
|
- 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