2019-06-27 05:21:04 +00:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
defaults: &defaults
|
|
|
|
working_directory: ~/repo
|
|
|
|
docker:
|
2019-10-24 20:15:55 +00:00
|
|
|
- image: mcr.microsoft.com/dotnet/core/sdk:3.0
|
2019-06-27 05:21:04 +00:00
|
|
|
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-28 00:18:10 +00:00
|
|
|
- test:
|
|
|
|
filters:
|
2019-06-28 00:22:43 +00:00
|
|
|
tags:
|
2019-06-28 00:18:10 +00:00
|
|
|
only: /.*/
|
2019-06-27 05:21:04 +00:00
|
|
|
- deploy:
|
2019-06-27 05:42:29 +00:00
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
|
|
|
tags:
|
2019-08-02 02:03:01 +00:00
|
|
|
only: /^\d+\.\d+\.\d+(-rc\d+)?$/
|