-
Notifications
You must be signed in to change notification settings - Fork 6
/
appveyor.yml
114 lines (99 loc) · 3.22 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
# YAML Reference Guide: https://www.appveyor.com/docs/appveyor-yml/
# Environmental Variables Guide: https://www.appveyor.com/docs/environment-variables/
# YAML Validator: https://ci.appveyor.com/tools/validate-yaml
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
version: 1.0.{build}
branches:
except:
- gh-pages
skip_tags: true
pull_requests:
do_not_increment_build_number: true
max_jobs: 3
image:
- Visual Studio 2017
- Ubuntu
for:
- matrix:
only:
- PowerShell: 6
image: Ubuntu
cache:
- '$HOME/.local/share/powershell/Modules -> requirements.psd1'
- '$HOME/.nvm'
- '$HOME/.npm'
- '$HOME/.cache/pip -> requirements.txt'
- '$HOME/.local/lib/python3.6/site-packages -> requirements.txt'
- '$HOME/.local/bin/mkdocs -> requirements.txt'
build_script:
- pwsh: ./build/build.ps1
- matrix:
only:
- PowerShell: 5
cache:
- '%USERPROFILE%\Documents\WindowsPowerShell\Modules -> requirements.psd1'
- '%APPDATA%\npm'
- '%APPDATA%\npm-cache'
- '%LOCALAPPDATA%\pip\cache -> requirements.txt'
- '%PYTHON%\Lib\site-packages -> requirements.txt'
- '%PYTHON%\Scripts\mkdocs.exe -> requirements.txt'
build_script:
- ps: $env:PATH = "${env:PYTHON};${env:PYTHON}\Scripts;${env:PATH}"
- ps: ./build/build.ps1 -DeploymentMode
- matrix:
only:
- PowerShell: 6
cache:
- '%USERPROFILE%\Documents\PowerShell\Modules -> requirements.psd1'
- '%APPDATA%\npm'
- '%APPDATA%\npm-cache'
- '%LOCALAPPDATA%\pip\cache -> requirements.txt'
- '%PYTHON%\Lib\site-packages -> requirements.txt'
- '%PYTHON%\Scripts\mkdocs.exe -> requirements.txt'
build_script:
- pwsh: $env:PATH = "${env:PYTHON};${env:PYTHON}\Scripts;${env:PATH}"
- pwsh: ./build/build.ps1
matrix:
exclude:
- PowerShell: 5
image: Ubuntu
- PowerShell: 6
image: Visual Studio 2017
clone_depth: 50
environment:
GITHUB_API_KEY:
secure: C73uALUvX96LkyNxMJ2FtGMPHBANvjpviy9EFg33uYZowJEdS4DvsXS12fzT17BY
NUGET_API_KEY:
secure: u2jbw68/5JWUmA5z8fBok8TNO0BAJ41CSNGUJeVAtrIgDJ7p7TqW6dTbFmytP9UG
COVERALLS_API_KEY:
secure: hClQPXu5AWqBK5R49g0hrkhYtLgDpdftXlpMk2tTO1ba4FlsL6Q6BtpqR1QQPkRC
matrix:
- PowerShell: '5'
PYTHON: C:\Python37-x64
# - PowerShell: '6'
test: off
deploy: off
artifacts:
- path: ./BuildOutput/TestResults.xml
name: Pester Test Results
- path: ./BuildOutput/CodeCoverageResults.xml
name: Pester Code Coverage Results
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false
- provider: GitHubPullRequest
auth_token:
secure: C73uALUvX96LkyNxMJ2FtGMPHBANvjpviy9EFg33uYZowJEdS4DvsXS12fzT17BY
template: "{{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}})"
- provider: Webhook # Gitter
url:
secure: VMG8UrlePL6sWol/IyQFbaCGkOLY9jFz+3wRnBG+rf95z9hLULTCpi+lN4xhSxwi4PyVEtDfstxeUA4/3+aP+g==
on_build_success: true
on_build_failure: true
on_build_status_changed: true