-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
60 lines (45 loc) · 1.4 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
# version format
version: 1.0.1.{build}
environment:
powershellgallery_apikey:
secure: mnc2Qk/sxVmJ1MXKzQMdNdA2RJYuf5/wZLchXz6cALTVuO9Y8alJf1mz+sa8+hMz
# branches to build
branches:
# blacklist
except:
- gh-pages
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
# Build worker image (VM template)
image: Visual Studio 2017
# build cache to preserve files/folders between builds
cache:
- packages
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# enable patching of csproj files
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
before_build:
- nuget restore
build:
parallel: true # enable MSBuild parallel builds
project: Elasticsearch.Powershell.sln # path to Visual Studio solution or project
publish_nuget: false # package projects with .nuspec files and push to artifacts
publish_nuget_symbols: false # generate and publish NuGet symbol packages
test:
deploy_script:
- powershell -File .\deploy.ps1
after_deploy:
- powershell -File .\generate-doc.ps1