Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit committed Oct 8, 2015
1 parent 4feef95 commit 435f0e0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ unifiedpush-dotnet-client
=========================

[![Build status](https://ci.appveyor.com/api/projects/status/dljwr39k4jco3qrk?svg=true)](https://ci.appveyor.com/project/edewit/aerogear-unifiedpush-dotnet-client)
[![Coverage Status](https://coveralls.io/repos/edewit/aerogear-unifiedpush-dotnet-client/badge.svg?branch=master&service=github)](https://coveralls.io/github/edewit/aerogear-unifiedpush-dotnet-client?branch=master)

A .Net client for sending Push Notifications to the [AeroGear UnifiedPush Server](https://github.com/aerogear/aerogear-unifiedpush-server)

Expand Down
24 changes: 23 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
version: 1.0.{build}
environment:
COVERALLS_REPO_TOKEN:
secure: dhAjH+2TJfUsrx5fxO4EB48Ox72GcNp8RZV+KI4yrXOAMJGR+jvMcb/PDDGtz/mf
before_build:
- nuget restore
build:
verbosity: minimal
verbosity: minimal
test_script:
- ps: >-
."C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" /inIsolation /Enablecodecoverage tests\bin\Debug\tests.dll /Settings:CodeCoverage.runsettings
$coverageFilePath = Resolve-Path -path "TestResults\*\*.coverage"
$coverageFilePath = $coverageFilePath.ToString()
if(Test-Path .\coverage.coveragexml){ rm .\coverage.coveragexml }
."C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe" analyze /output:coverage.coveragexml "$coverageFilePath"
Push-AppveyorArtifact coverage.coveragexml
$coveralls = (Resolve-Path "packages/coveralls.net.*/tools/csmacnz.coveralls.exe").ToString()
& $coveralls --dynamiccodecoverage -i coverage.coveragexml --repoToken $env:COVERALLS_REPO_TOKEN --useRelativePaths -o cov.json
Push-AppveyorArtifact cov.json

0 comments on commit 435f0e0

Please sign in to comment.