Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 590318e

Browse files
committed
Updated build script to include code coverage
1 parent ffefbb2 commit 590318e

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.nuget/packages.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="NuGet.CommandLine" version="2.8.3" />
4+
<package id="OpenCover" version="4.6.247-rc" />
5+
</packages>

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

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

7+
[![codecov.io](https://codecov.io/github/DotNetAnalyzers/AsyncUsageAnalyzers/coverage.svg?branch=master)](https://codecov.io/github/DotNetAnalyzers/AsyncUsageAnalyzers?branch=master)
8+
79
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.

appveyor.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
version: 1.0.{build}
2-
os: Visual Studio 2015 CTP 6
2+
os: Visual Studio 2015
33
init:
44
- git config --global core.autocrlf true
55
install:
66
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
77
before_build:
88
- nuget restore
99
build:
10+
project: AsyncUsageAnalyzers.sln
1011
verbosity: minimal
12+
test_script:
13+
- .\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
14+
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
15+
- pip install codecov
16+
- codecov -f "AsyncUsageAnalyzers_coverage.xml"
17+
# preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
18+
cache:
19+
- packages -> **\packages.config

0 commit comments

Comments
 (0)