2019-06-27 05:21:04 +00:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
defaults: &defaults
|
|
|
|
working_directory: ~/repo
|
|
|
|
docker:
|
|
|
|
- image: mcr.microsoft.com/dotnet/core/sdk:2.2
|
|
|
|
environment:
|
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: dotnet restore
|
|
|
|
- run: dotnet build -c Release
|
|
|
|
- run: dotnet test -c Release
|
2019-06-27 05:29:41 +00:00
|
|
|
- persist_to_workspace:
|
2019-06-27 05:43:44 +00:00
|
|
|
root: .
|
2019-06-27 05:45:36 +00:00
|
|
|
paths: ./encompass-cs/bin
|
2019-06-27 05:21:04 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- attach_workspace:
|
2019-06-27 05:43:44 +00:00
|
|
|
at: .
|
2019-06-27 05:29:41 +00:00
|
|
|
- run: dotnet nuget push ./encompass-cs/bin/Release/EncompassECS.Framework.*.nupkg -k $API_KEY -s $NUGET_SOURCE
|
2019-06-27 05:21:04 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
test_and_deploy:
|
|
|
|
jobs:
|
2019-06-27 05:31:12 +00:00
|
|
|
- test
|
2019-06-27 05:21:04 +00:00
|
|
|
- deploy:
|
2019-06-27 05:42:29 +00:00
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
|
|
|
tags:
|
|
|
|
only: /^[0-9]\.[0-9]\.[0-9]$/
|