forked from AtlassianPS/ConfluencePS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (36 loc) · 1.45 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
# https://www.appveyor.com/docs/appveyor-yml/
# http://www.yamllint.com/
# https://www.appveyor.com/docs/environment-variables/
# Without this, the following error shows up:
# "Specify a project or solution file. The directory does not contain a project or solution file."
build: off
# Ignore testing a commit if only the readme changed
# Or if I include "skip-tests" in the commit message
skip_commits:
files:
- README.md
message: /skip\-tests/
# PRs, by definition, don't change anything and therefore should not increment the version
# To be fair, this is not important, and is really just AppVeyor enabling my pedantry
pull_requests:
do_not_increment_build_number: true
# Need my PS Gallery API key if publishing a module update
# The "secure:" value is the Appveyor encryption of the key
environment:
PSGalleryAPIKey:
secure: 1wcOLpXblYir1QP8rYSusYG9D216kqXfs/FqDft4/9ISWaYD/ne/YP0mN5qeA0G+
# Install NuGet to interact with the PowerShell Gallery
install:
- ps: |
Install-PackageProvider -Name NuGet -Force | Out-Null
Install-Module -Name Pester -Force
# Offload all PowerShell test/build work to a separate file
test_script:
- ps: . .\Tests\build.ps1
# Post in my Slack #builds channel
# The "secure:" value is the Appveyor encryption of my Slack API "test" token
notifications:
- provider: Slack
auth_token:
secure: +Y/c3bM0RNleCHnyAo+QHxn7PqTfaQdfHoh6Ki6ZMTsF8Aut5/ND1GIIb8cVwuahNj77QKyLCFvHNx0Yx9F12g==
channel: '#builds'