-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathappveyor.yml
32 lines (32 loc) · 1.21 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
version: 1.0.{build}
os: WMF 5
skip_commits:
files:
- README.md
only_commits:
files:
- PSGallery/
- Package/*.template
pull_requests:
do_not_increment_build_number: true
build_script:
- ps: |
Install-PackageProvider -Name NuGet -Force | Out-Null
find-module -Repository PSGallery -Name PowerShellGet | Out-Null
Install-Module -Name PowerShellGet -Force -Repository PSGallery | Out-Null
find-module -Repository PSGallery -Name PSScriptAnalyzer | Out-Null
Install-Module -Name PSScriptAnalyzer -Force -Repository PSGallery | Out-Null
find-module -Repository PSGallery -Name Pester | Out-Null
Install-Module -Name Pester -Force -Repository PSGallery | Out-Null
find-module -Repository PSGallery -Name PSDeploy | Out-Null
Install-Module -Name PSDeploy -Force -Repository PSGallery | Out-Null
find-module -Repository PSGallery -Name posh-git | Out-Null
Install-Module -Name posh-git -Force -Repository PSGallery | Out-Null
$env:Path += ";$env:ProgramFiles\Git\cmd"
test_script:
- ps: |
write-verbose "Running Pester..."
$pest = Invoke-Pester -passthru -verbose
if ($pest.FailedCount -gt 0) {
throw "$($pest.FailedCount) tests failed."
}