Skip to content

Commit 4c7a65e

Browse files
author
Kapil Borle
committed
Add visual studio 2015 image to appveyor
Visual Studio 2015 image runs on Windows Server 2012 R2. Hence, this will help us test ScriptAnalyzer on PowerShell v4
1 parent 01e1432 commit 4c7a65e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

appveyor.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Image with WMF5.0 RTM
2-
os: "WMF 5"
2+
os:
3+
- "WMF 5"
4+
- "Visual Studio 2015"
35

46
# clone directory
57
clone_folder: c:\projects\psscriptanalyzer
6-
8+
79
# Install Pester
8-
install:
10+
install:
911
- cinst -y pester --version 3.3.13
10-
12+
1113
# Build PSScriptAnalyzer using msbuild
1214
build: true
1315

@@ -27,15 +29,15 @@ test_script:
2729
$ruleTestResultsFile = ".\RuleTestResults.xml"
2830
$engineTestResults = Invoke-Pester -Script "C:\projects\psscriptanalyzer\Tests\Engine" -OutputFormat NUnitXml -OutputFile $engineTestResultsFile -PassThru
2931
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $engineTestResultsFile))
30-
if ($engineTestResults.FailedCount -gt 0) {
32+
if ($engineTestResults.FailedCount -gt 0) {
3133
throw "$($engineTestResults.FailedCount) tests failed."
3234
}
3335
$ruleTestResults = Invoke-Pester -Script "C:\projects\psscriptanalyzer\Tests\Rules" -OutputFormat NUnitXml -OutputFile $ruleTestResultsFile -PassThru
3436
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $ruleTestResultsFile))
35-
if ($ruleTestResults.FailedCount -gt 0) {
37+
if ($ruleTestResults.FailedCount -gt 0) {
3638
throw "$($ruleTestResults.FailedCount) tests failed."
3739
}
38-
40+
3941
# Upload the project along with TestResults as a zip archive
4042
on_finish:
4143
- ps: |

0 commit comments

Comments
 (0)