Skip to content

Commit

Permalink
Update appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathkcm committed Aug 15, 2019
1 parent 6806db2 commit 2f5f1e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ test_script:
$coveralls = "./coveralls/coveralls.net.0.7.0/tools/csmacnz.coveralls.exe"
dotnet test Pluralize.NET.Tests /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Threshold=80 /p:ThresholdType=line /p:Exclude="[NUnit*]*"
if($env:COVERALLS_REPO_TOKEN) {
$uploadCommand = $coveralls + " --opencover -i Pluralize.NET.Tests\coverage.xml --repoToken " + $env:COVERALLS_REPO_TOKEN + " --useRelativePaths --commitId " + $env:APPVEYOR_REPO_COMMIT + " --commitBranch " + $env:APPVEYOR_REPO_BRANCH + " --commitAuthor " + $env:APPVEYOR_REPO_COMMIT_AUTHOR + " --commitEmail " + $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL + " --commitMessage " + $env:APPVEYOR_REPO_COMMIT_MESSAGE + " --jobId " + $env:APPVEYOR_BUILD_NUMBER + "--serviceName appveyor"
iex "& $uploadCommand"
$uploadCommand = "$coveralls --opencover -i Pluralize.NET.Tests\coverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --useRelativePaths --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor '$env:APPVEYOR_REPO_COMMIT_AUTHOR' --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage '$env:APPVEYOR_REPO_COMMIT_MESSAGE' --jobId $env:APPVEYOR_BUILD_NUMBER --serviceName appveyor"
write-host $uploadCommand
iex $uploadCommand
}
artifacts:
- path: Pluralize.NET/bin/Release
Expand Down

0 comments on commit 2f5f1e0

Please sign in to comment.