-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
49 lines (39 loc) · 1.59 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
# See http://www.appveyor.com/docs/appveyor-yml for many more options
# Only run AppVeyor on master branch
branches:
only:
- master
# 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.*/
# Publish to PowerShell Gallery with this key
environment:
NuGetApiKey:
secure: AZ37p+H63dtSWUV6jbQg6s8PDNEDpF8ApLFqwc665zRy4dgUdCA5lVkawzaIHUnr
GitHubKey:
secure: UwnxudS5HgpMcO685izeyD4HbG0Q7RPmfcURwAkd7V+l1/qpL4vEky5Nzl1XD/iL
# Allow WMF5 (i.e. PowerShellGallery functionality)
os: WMF 5
build: false
# test_script:
# - ps: Invoke-Pester -Path ".\Tests" -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru
# Install NuGet to interact with the PowerShell Gallery
install:
- ps: |
Install-PackageProvider -Name NuGet -MinimumVersion '2.8.5.201' -Force -Verbose
Install-Module -Name posh-git -Force
image: WMF 5
build_script:
- ps: Get-PackageProvider -ListAvailable
- ps: Get-PackageProvider -Name NuGet
# to run your custom scripts instead of provider deployments
deploy_script:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubKey):[email protected]`n"
- git config --global core.safecrlf false
- git config --global user.email "[email protected]"
- git config --global user.name "Markus Mattes"
- ps: . .\Build\deploy.ps1