Skip to content

Commit

Permalink
Updated build script to include code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Dec 30, 2015
1 parent ffefbb2 commit 590318e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .nuget/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NuGet.CommandLine" version="2.8.3" />
<package id="OpenCover" version="4.6.247-rc" />
</packages>
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

[![Build status](https://ci.appveyor.com/api/projects/status/0f0w76hunsj3es8p/branch/master?svg=true)](https://ci.appveyor.com/project/sharwell/asyncusageanalyzers/branch/master)

[![codecov.io](https://codecov.io/github/DotNetAnalyzers/AsyncUsageAnalyzers/coverage.svg?branch=master)](https://codecov.io/github/DotNetAnalyzers/AsyncUsageAnalyzers?branch=master)

This repository contains analyzers for best practices related to asynchronous programming. Where possible, code fixes are also provided to simplify the process of correcting violations.
11 changes: 10 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
version: 1.0.{build}
os: Visual Studio 2015 CTP 6
os: Visual Studio 2015
init:
- git config --global core.autocrlf true
install:
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
before_build:
- nuget restore
build:
project: AsyncUsageAnalyzers.sln
verbosity: minimal
test_script:
- .\packages\OpenCover.4.6.247-rc\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"C:\projects\asyncusageanalyzers\AsyncUsageAnalyzers\AsyncUsageAnalyzers.Test\bin\Debug\AsyncUsageAnalyzers.Test.dll -noshadow -appveyor" -returntargetcode -filter:"+[AsyncUsage*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\AsyncUsageAnalyzers_coverage.xml
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "AsyncUsageAnalyzers_coverage.xml"
# preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
cache:
- packages -> **\packages.config

0 comments on commit 590318e

Please sign in to comment.