File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 4
4
os : WMF 5
5
5
6
6
# Skip on updates to the readme.
7
- # We can force this by adding [skip ci] or [ci skip] anywhere in commit message
7
+ # We can force this by adding [skip ci] or [ci skip] anywhere in commit message
8
8
skip_commits :
9
9
message : /updated readme.*|update readme.*s/
10
10
@@ -16,4 +16,7 @@ build: false
16
16
17
17
# Kick off the CI/CD pipeline
18
18
test_script :
19
- - ps : . .\build.ps1 -Task Test
19
+ - ps : |
20
+ . .\build.ps1 -Task Test
21
+ (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path '.\TestsResults-Mod.xml'))
22
+ (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path '.\TestsResults-Meta.xml'))
Original file line number Diff line number Diff line change @@ -33,14 +33,15 @@ task Analyze -Depends Init {
33
33
}
34
34
}
35
35
36
- task Pester- Meta - Depends Init {
36
+ task Pester- Meta - Depends Init {
37
37
if (-not $ENV: BHProjectPath ) {
38
38
Set-BuildEnvironment - Path $PSScriptRoot \..
39
39
}
40
40
Remove-Module $ENV: BHProjectName - ErrorAction SilentlyContinue
41
41
Import-Module (Join-Path $ENV: BHProjectPath $ENV: BHProjectName ) - Force
42
42
43
- $testResults = Invoke-Pester - Path $metaTests - PassThru
43
+ $testResultsFile = " $projectRoot \TestResults-Meta.xml"
44
+ $testResults = Invoke-Pester - Path $metaTests - PassThru - OutputFormat NUnitXml - OutputFile $testResultsFile
44
45
if ($testResults.FailedCount -gt 0 ) {
45
46
$testResults | Format-List
46
47
Write-Error - Message ' One or more Pester tests failed. Build cannot continue!'
@@ -54,7 +55,8 @@ task Pester-Module -depends Init {
54
55
Remove-Module $ENV: BHProjectName - ErrorAction SilentlyContinue
55
56
Import-Module (Join-Path $ENV: BHProjectPath $ENV: BHProjectName ) - Force
56
57
57
- $testResults = Invoke-Pester - Path $unitTests - PassThru
58
+ $testResultsFile = " $projectRoot \TestResults-Module.xml"
59
+ $testResults = Invoke-Pester - Path $unitTests - PassThru - OutputFormat NUnitXml - OutputFile $testResultsFile
58
60
if ($testResults.FailedCount -gt 0 ) {
59
61
$testResults | Format-List
60
62
Write-Error - Message ' One or more Pester tests failed. Build cannot continue!'
You can’t perform that action at this time.
0 commit comments