-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathappveyor.yml
152 lines (117 loc) · 4.47 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 2.6.{build}
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
environment:
# standard_version: '2.2.$(appveyor_build_number)'
standard_version: '2.6.0'
before_build:
- nuget restore ./src/BullOak.Repositories.EventStore.sln
- ps: |
Write-Output "env.appveyor_build_number = $env:appveyor_build_number"
Write-Output "env.standard_version = $env:standard_version"
Write-Output "env.file_version = $env:file_version"
# branches to build
branches:
only:
- master
# Maximum number of concurrent jobs for the project
max_jobs: 1
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2017
# clone directory
clone_folder: c:\projects\BullOak.Repositories.EventStore
# fetch repository as zip archive
shallow_clone: true # default is "false"
# set clone depth
clone_depth: 1 # clone entire repository history if not defined
# setting up etc\hosts file
hosts:
queue-server: 127.0.0.1
db.server.com: 127.0.0.2
# this is how to allow failing jobs in the matrix
matrix:
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
allow_failures:
- platform: x86
configuration: Release
- platform: x64
configuration: Release
# build cache to preserve files/folders between builds
cache:
- '%LocalAppData%\NuGet\Cache'
pull_requests:
do_not_increment_build_number: true
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '$(standard_version)'
assembly_version: '$(standard_version).$(appveyor_build_number)'
file_version: '$(standard_version).$(appveyor_build_number)'
# Automatically register private account and/or project AppVeyor NuGet feeds.
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
build:
parallel: true # enable MSBuild parallel builds
project: src\BullOak.Repositories.EventStore.sln # path to Visual Studio solution or project
publish_nuget: true # package projects with .nuspec files and push to artifacts
# MSBuild verbosity level
verbosity: normal
#---------------------------------#
# tests configuration #
#---------------------------------#
test:
assemblies:
- '**\*.Test.Unit.dll'
- '**\*.Test.Acceptance.dll'
- '**\*.Test.Integration.dll'
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: '*.nupkg'
name: bullOakEventStoreNugets
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
deploy:
# Deploying to NuGet feed
- provider: NuGet
api_key:
secure: qTUJuiOZcGz/5ZjxlDdMbpOrFy+jifEgSJebflyaWe2FSIfu/V2I5zEXhThhXBvJ
skip_symbols: false
artifact: /.*\.nupkg/
# scripts to run after deployment
after_deploy:
- ps: |
Write-Output "APPVEYOR_BUILD_VERSION = $APPVEYOR_BUILD_VERSION"
Write-Output "env.APPVEYOR_BUILD_VERSION = $env:APPVEYOR_BUILD_VERSION"
Write-Output "APPVEYOR_BUILD_NUMBER = $APPVEYOR_BUILD_NUMBER"
Write-Output "env.APPVEYOR_BUILD_NUMBER = $env:APPVEYOR_BUILD_NUMBER"
Write-Output "APPVEYOR_PULL_REQUEST_NUMBER = $APPVEYOR_PULL_REQUEST_NUMBER"
Write-Output "env.APPVEYOR_PULL_REQUEST_NUMBER = $env:APPVEYOR_PULL_REQUEST_NUMBER"
$postParams = @{ value1 = "BullOak.Repositories.EventStore"; value2 = "$env:standard_version"; value3="https://www.nuget.org/packages/BullOak.Repositories.EventStore/" }
Invoke-WebRequest -Uri https://maker.ifttt.com/trigger/bo_release/with/key/kSg0JPLZLcht1NDoihgjW -Method POST -Body $postParams
#---------------------------------#
# notifications #
#---------------------------------#
# notifications:
# - provider: Slack
# incoming_webhook: https://hooks.slack.com/services/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