Skip to content

Commit

Permalink
Build and send test coverage to Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-tretton37 committed Mar 18, 2019
1 parent 128b574 commit 901996b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
version: '{build}'
skip_branch_with_pr: true
environment:
COVERALLS_REPO_TOKEN:
secure: Gaw61uh99a/i697NTRfpH1NU3LfmUkdGhsRh33555o1CNUQ0Ro75r0hvPbIa578k
image: Visual Studio 2017
install:
- cmd: cd src
build_script:
- cmd: dotnet build Castle.Sdk -c Release -f netstandard2.0
- cmd: dotnet build Castle.Sdk -c Release -f net461
test_script:
- cmd: dotnet test Tests
- ps: nuget install OpenCover -OutputDirectory packages -Version 4.7.922
- ps: dotnet tool install coveralls.net --tool-path tools
- ps: .\packages\OpenCover.4.7.922\tools\OpenCover.Console.exe -register:user -target:dotnet.exe -targetargs:"test src\Tests\Tests.csproj" -filter:"+[Castle.Sdk*]*" -oldStyle -output:opencoverCoverage.xml
- ps: .\tools\csmacnz.coveralls.exe --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --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_JOB_ID

0 comments on commit 901996b

Please sign in to comment.