Skip to content

Commit

Permalink
Closes #416 - Add code coverage to Coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Mar 15, 2017
1 parent 99c1fc5 commit c89a47f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
os:
- "WMF 5"

environment:
CA_KEY:
secure: +TWGUsZ77a5RAsuMNII7mBsVHon89hIXkI2X/ZDkSO4KWNo+Ozo8lPLST4Y5eAwE

branches:
only:
- master
Expand All @@ -18,6 +22,11 @@ install:
build: false

before_test:
- ps: Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
- ps: Install-Module Coveralls -MinimumVersion 1.0.5 -Scope CurrentUser
- ps: Import-Module Coveralls

test_script:
- ps: |
$testResultsFile = Join-Path $Env:APPVEYOR_BUILD_FOLDER TestResults.xml
Expand All @@ -38,3 +47,5 @@ test_script:
$Error | Format-List * -Force
exit 1;
}
$coverageResult = Format-Coverage -Include (gci ..\src\* -include *.ps1,*.psm1) -CoverallsApiToken $ENV:CA_KEY -RootFolder ../ -BranchName $ENV:APPVEYOR_REPO_BRANCH
Publish-Coverage -Coverage $coverageResult

0 comments on commit c89a47f

Please sign in to comment.