-
Notifications
You must be signed in to change notification settings - Fork 10
/
appveyor.yml
27 lines (24 loc) · 1.01 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
version: 3.17.0.{build}
only_commits:
files:
- 'src/'
- 'test/'
install:
- ps: |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module Pester -RequiredVersion 4.10.1 -Scope CurrentUser -Force
Install-Module psake -Scope CurrentUser -Force -RequiredVersion 4.7.4
Install-Module PSScriptAnalyzer -Scope CurrentUser -Force
Install-Module platyPS -Scope CurrentUser -Force
build_script:
- ps: |
$testResultsFile = Join-Path $pwd -ChildPath "$PSScriptRoot/TestResults.xml"
Invoke-psake build.psake.ps1 -taskList Test, BuildHelp -properties @{"TestOutputFile" = $testResultsFile}
if ($psake.build_success -and (Test-Path $testResultsFile)) {
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", $testResultsFile)
}
else {
# Terminate the script to fail the build
$Error | Format-List * -Force
exit 1;
}