Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpaulovich committed Jun 17, 2018
1 parent ed3f58b commit a9009fd
Show file tree
Hide file tree
Showing 3 changed files with 1,569 additions and 3 deletions.
21 changes: 18 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
build_script:
- ps: .\build.ps1
branches:
only:
- master
- master
before_build:
- nuget restore
build_script:
- msbuild /verbosity:quiet "Finance.sln"
test_script:
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"packages\xunit.runner.console.2.2.0\tools\xunit.console.x86.exe" -targetargs:"test\Finance.Domain.Tests\bin\Debug\tests.dll -noshadow" -output:".\coverage.xml" -filter:"+[Finance.Domain*]* -[Finance.Domain.Tests*]*"
# use codecov bash script. Requires powershell and bash to be installed, which both are on the AppVeyor machine image
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "coverage.xml"
# use codecov python package. Requires python to be available, which it is on AppVeyor machine image, and then we have to install the codecov package
#after_test:
#- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
#- pip install codecov
#- codecov -f "coverage.xml"
Loading

0 comments on commit a9009fd

Please sign in to comment.