-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
118 lines (95 loc) · 3.13 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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}-{branch}
# branches to build
# branches:
# # whitelist
# only:
# - master
# # blacklist
# except:
# - gh-pages
# Skipping commits with particular message or from specific user
skip_commits:
message: /[Ww][Ii][Pp].*/ # Regex for matching commit message
# author: John # Commit author's username, name, email or regexp maching one of these.
# Maximum number of concurrent jobs for the project
max_jobs: 1
# Build worker image (VM template)
image: Visual Studio 2017
# fetch repository as zip archive
shallow_clone: false # default is "false"
# environment variables
#environment:
# my_var1: value1
# my_var2: value2
# this is how to set encrypted variable. Go to "Encrypt data" page in account menu to encrypt data.
# my_secure_var1:
# secure: FW3tJ3fMncxvs58/ifSP7w==
install:
- cmd: git submodule update --init --recursive
#---------------------------------#
# build configuration #
#---------------------------------#
build_script:
- ps: .\build.ps1 -ShouldExit 1
#---------------------------------#
# tests configuration #
#---------------------------------#
#test_script:
# - cmd: runtests.bat
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
# pushing a single file with environment variable in path and "Deployment name" specified
- path: '**\*.zip'
name: zip
# pushing entire folder as a zip archive
- path: '**\*.binlog'
name: binlog
# pushing all *.nupkg files in build directory recursively
- path: '**\*.nupkg'
name: nupkg
#---------------------------------#
# deployment configuration #
#---------------------------------#
before_deploy:
- ps: ${env:RELEASE_DESCRIPTION} = (Get-Content -LiteralPath docs\RELEASE_NOTES.md -Encoding UTF8) -join "`n";
deploy:
- provider: NuGet
# generate at https://www.nuget.org/account/apikeys
# encrypt at https://ci.appveyor.com/tools/encrypt
api_key:
secure: 4Lyrll3THCsTy9mxEaxUCkF30ssv3b4iyMfUQQkIPe7f02/OM7Q22M5XUONoonwV
artifact: nupkg
on:
branch: master
APPVEYOR_REPO_TAG: true
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
release: $(APPVEYOR_REPO_TAG_NAME)
description: $(RELEASE_DESCRIPTION)
# generate at https://github.com/settings/tokens (scope : public_repo)
# encrypt at https://ci.appveyor.com/tools/encrypt
auth_token:
secure: 3iog8mBj0QRNVL9bIvMxlJNcRkKaoPgXtShwnhIjkxO4+v3F93h96i5pUUV04rfB
artifact: nupkg
draft: true
prerelease: true
on:
branch: master
APPVEYOR_REPO_TAG: true
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
# Email
- provider: Email
to:
- greenzest@gmail.com
on_build_success: false
on_build_failure: true
on_build_status_changed: true