2015-06-13 20:12:48 +02:00
|
|
|
version: 1.0.{build}
|
2015-07-15 12:28:26 +02:00
|
|
|
install:
|
2015-07-15 12:52:25 +02:00
|
|
|
- nuget restore
|
2015-06-13 20:12:48 +02:00
|
|
|
configuration: Release
|
|
|
|
|
platform: Any CPU
|
2015-07-15 11:55:35 +02:00
|
|
|
environment:
|
|
|
|
|
COVERALLS_REPO_TOKEN:
|
|
|
|
|
secure: 2D6Q22+GyTngkC0xomWycgK0kXY4FepSad7Ep/R3R8xha+xEPisCKBISSLCq0Sl0
|
2015-07-20 16:57:52 +02:00
|
|
|
CoverityProjectToken:
|
|
|
|
|
secure: pUUrynbyxCRpsAgGdKBVYDZCilwBmaWQ1Jg+rg5znr0=
|
|
|
|
|
CoverityNotificationEmail:
|
|
|
|
|
secure: m/ox72HU97EeJExWEFWx+0M9uov0cydn6E8mSaQzsQE=
|
|
|
|
|
build:
|
|
|
|
|
project: HtmlSanitizer.sln
|
|
|
|
|
verbosity: minimal
|
|
|
|
|
after_build:
|
2015-07-20 17:31:36 +02:00
|
|
|
- ps: |
|
2015-07-20 17:29:25 +02:00
|
|
|
if ($true)
|
|
|
|
|
{
|
|
|
|
|
cov-build.exe --dir cov-int msbuild /t:Rebuild HtmlSanitizer.sln
|
|
|
|
|
nuget.exe install PublishCoverity -ExcludeVersion
|
|
|
|
|
PublishCoverity\PublishCoverity.exe compress -o coverity.zip -i cov-int
|
2015-07-29 12:21:17 +02:00
|
|
|
PublishCoverity\PublishCoverity.exe publish -t "$env:CoverityProjectToken" -e "$env:CoverityNotificationEmail" -r "$env:APPVEYOR_REPO_NAME" -z coverity.zip -d "AppVeyor $env:APPVEYOR_BUILD_VERSION" --codeVersion "$env:APPVEYOR_BUILD_VERSION"
|
2015-07-20 17:29:25 +02:00
|
|
|
}
|
2015-07-15 11:55:35 +02:00
|
|
|
after_test:
|
|
|
|
|
# generate report for NUnit testing framework:
|
2015-07-15 13:04:25 +02:00
|
|
|
- packages\OpenCover.4.5.3723\OpenCover.Console.exe -register:user -filter:"+[*]*" -target:"packages\NUnit.Runners.2.6.4\tools\nunit-console.exe" -targetargs:"/noshadow /domain:single HtmlSanitizer.Tests\bin\release\HtmlSanitizer.Tests.dll" -output:coverage.xml
|
2015-07-15 11:55:35 +02:00
|
|
|
- packages\coveralls.io.1.3.4\tools\coveralls.net.exe --opencover coverage.xml
|