-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathappveyor.yml
65 lines (54 loc) · 1.8 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
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
# install Azurite (https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azurite#install-and-run-azurite-by-using-npm)
install:
- npm install -g azurite
# restore nuget packages
before_build:
- cmd: dotnet restore src\ServiceBus.AttachmentPlugin.sln
- cmd: echo %appveyor_build_version%
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
build:
parallel: true # enable MSBuild parallel builds
project: src\ServiceBus.AttachmentPlugin.sln # path to Visual Studio project
# MSBuild verbosity level
verbosity: normal # quiet|minimal|normal|detailed
before_test:
- ps: $AzuriteProcess = Start-Process azurite-blob.cmd -PassThru
test:
assemblies:
only:
- '**\*.tests.dll'
after_test:
- ps: Stop-Process $AzuriteProcess
# artifacts configuration
artifacts:
- path: '**\*.nupkg'
name: 'ServiceBus.AttachmentPlugin%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: CUVXMqoa5BxC+rE7GQ1pWsaM4rPDFVtFBAozyLv7P7gMk7GSxmGu0+AaedlUQSd5 # encrypted ServiceBus.AttachmentPlugin API key
artifact: /.*\.nupkg/
on:
branch: master