-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
73 lines (60 loc) · 2.1 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
skip_tags: true
skip_commits:
files:
- '**/*.md'
- images/*
matrix:
fast_finish: true
image: Visual Studio 2019
environment:
matrix:
# First build
- DotNetRunTime: net461
# Second build
- DotNetRunTime: netcoreapp3.0
#---------------------------------#
# restore nuget packages #
#---------------------------------#
before_build:
- cmd: dotnet restore src\ServiceBus.CompressionPlugin.sln
- cmd: echo %appveyor_build_version%
#---------------------------------#
# build configuration #
#---------------------------------#
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
build:
parallel: true # enable MSBuild parallel builds
project: src\ServiceBus.CompressionPlugin.sln # path to Visual Studio project
# MSBuild verbosity level
verbosity: normal # quiet|minimal|normal|detailed
test:
assemblies:
only:
- '**\*.tests.dll'
after_build:
## 7z a ServiceBus.CompressionPlugin-%GitVersion_MajorMinorPatch%.zip %APPVEYOR_BUILD_FOLDER%\src\ServiceBus.CompressionPlugin\bin\Release\*.*
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: '**\*.nupkg'
name: 'ServiceBus.CompressionPlugin.%GitVersion_MajorMinorPatch%.nupkg'
#---------------------------------#
# GitHub PR notifications #
#---------------------------------#
notifications:
- provider: GitHubPullRequest
auth_token:
secure: oQQNBFHTaM9998aRO2Y2Gnvz1hSdU44cQACuLaANlAusEEA2QqlWt5hw907b/IIC # encrypted token from GitHub
template: "{{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}})"
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
provider: NuGet
api_key:
secure: 1/gMnCpZKbZykJEuSO1iNNX+IcxKNhI3zliomM2g/SlEGl2LCdoUETDaTqjbBCuo # encrypted ServiceBus.CompressionPlugin API key
artifact: /.*\.nupkg/
on:
branch: master