Skip to content

Commit 943a9ca

Browse files
committed
fixup! Publish code coverage
1 parent f21c82f commit 943a9ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

appveyor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ test_script:
124124
-register:user `
125125
-target:$Env:xunit_runner `
126126
"-targetargs:""$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll"" /noshadow /appveyor" `
127-
-filter:"+[LibGit2Sharp*]*" -output:opencoverCoverage.xml
127+
-filter:"+[LibGit2Sharp.*]* -[LibGit2Sharp.Tests.*]*" -output:opencoverCoverage.xml
128128
}
129129
Else
130130
{
@@ -155,6 +155,8 @@ after_test:
155155
156156
If ($Env:SHOULD_RUN_COVERALLS -eq $True -and $Env:publish_on_success -eq $True)
157157
{
158+
Write-Host "Uploading code coverage result..." -ForegroundColor "Green"
159+
158160
.\packages\coveralls.net\csmacnz.Coveralls.exe `
159161
--opencover -i opencoverCoverage.xml `
160162
--repoToken $Env:coveralls_token `
@@ -163,6 +165,8 @@ after_test:
163165
--commitAuthor $Env:APPVEYOR_REPO_COMMIT_AUTHOR `
164166
--commitEmail $Env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL `
165167
--commitMessage $Env:APPVEYOR_REPO_COMMIT_MESSAGE `
168+
--useRelativePaths `
169+
--basePath "$Env:APPVEYOR_BUILD_FOLDER\"`
166170
--jobId $Env:APPVEYOR_JOB_ID
167171
}
168172

0 commit comments

Comments
 (0)