File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Image with WMF5.0 RTM
2
- os : " WMF 5"
2
+ os :
3
+ - " WMF 5"
4
+ - " Visual Studio 2015"
3
5
4
6
# clone directory
5
7
clone_folder : c:\projects\psscriptanalyzer
6
-
8
+
7
9
# Install Pester
8
- install :
10
+ install :
9
11
- cinst -y pester --version 3.3.13
10
-
12
+
11
13
# Build PSScriptAnalyzer using msbuild
12
14
build : true
13
15
@@ -27,15 +29,15 @@ test_script:
27
29
$ruleTestResultsFile = ".\RuleTestResults.xml"
28
30
$engineTestResults = Invoke-Pester -Script "C:\projects\psscriptanalyzer\Tests\Engine" -OutputFormat NUnitXml -OutputFile $engineTestResultsFile -PassThru
29
31
(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) {
31
33
throw "$($engineTestResults.FailedCount) tests failed."
32
34
}
33
35
$ruleTestResults = Invoke-Pester -Script "C:\projects\psscriptanalyzer\Tests\Rules" -OutputFormat NUnitXml -OutputFile $ruleTestResultsFile -PassThru
34
36
(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) {
36
38
throw "$($ruleTestResults.FailedCount) tests failed."
37
39
}
38
-
40
+
39
41
# Upload the project along with TestResults as a zip archive
40
42
on_finish :
41
43
- ps : |
You can’t perform that action at this time.
0 commit comments