-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
39 lines (33 loc) · 1.42 KB
/
appveyor.yml
File metadata and controls
39 lines (33 loc) · 1.42 KB
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
# See http://www.appveyor.com/docs/appveyor-yml for many more options
# Allow WMF5 (i.e. PowerShellGallery functionality)
os: Unstable
# We can force this by adding [skip ci] or [ci skip] anywhere in commit message
# Ignore testing a commit if only the README.md file changed
# Or if various strings are found in the commit message: updated readme, update readme, update docs, update version, update appveyor
skip_commits:
files:
- README.md
message: /updated readme.*|update readme.*s|update docs.*|update version.*|update appveyor.*/
# PowerShell Gallery API key for publishing an update to the module
# The "secure:" value is the Appveyor encryption of the key
environment:
NuGetApiKey:
secure: REPLACEWITHYOURVERSION
GitHubKey:
secure: REPLACEWITHYOURVERSION
install:
- ps: |
Install-PackageProvider -Name NuGet -Force | Out-Null
Install-Module -Name Pester -Force
Install-Module -Name posh-git -Force
Install-Module -Name platyPS -Force
build: false
test_script:
# Test with native PS version
- ps: . .\appveyor.pester.ps1 -Test -Finalize
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubKey):x-oauth-basic@github.com`n"
- git config --global user.email "<%=$PLASTER_PARAM_ModuleEmail%>"
- git config --global user.name "<%=$PLASTER_PARAM_ModuleAuthor%>"
- git config --global core.autocrlf true
- ps: . .\build.ps1