isn/.gitlab-ci.yml

50 lines
1.4 KiB
YAML

# This file is a template, and might need editing before it works on your project.
# see https://docs.gitlab.com/ee/ci/yaml/README.html for all available options
# you can delete this line if you're not using Docker
image: busybox:latest
before_script:
- echo "Before script section"
- echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details"
3 years ago
- dotnet restore --ignore-failed-sources
after_script:
- echo "After script section"
- echo "For example you might do some cleanup here"
build1:
stage: build
script:
3 years ago
- dotnet build
3 years ago
nonreg:
stage: test
script:
3 years ago
- ASPNETCORE_ENVIRONMENT=Development dotnet test
3 years ago
test2:
stage: test
script:
- echo "Do another parallel test here"
- echo "For example run a lint test"
3 years ago
- echo BUT DONO dotnet user-secrets list --project test/nuget.host.tests/
3 years ago
publish:
stage: deploy
3 years ago
artifacts:
paths:
3 years ago
- src/nuget-host/bin/Release/netcoreapp2.1/publish/
script:
3 years ago
- dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources
3 years ago
3 years ago
pack:
3 years ago
stage: deploy
3 years ago
artifacts:
paths:
3 years ago
- src/nuget-host/bin/Release/nuget-host.*.nupkg
3 years ago
script:
- dotnet pack --configuration Release --no-restore
3 years ago
- nuget push -Source $NUGETSOURCE -ApiKey "$NUGETSOURCEAPIKEY" src/nuget-host/bin/Release/nuget-host.*.nupkg