Files
HtmlSanitizer/appveyor.yml
Michael Ganss cda7640314 Use AppVeyor build number for Coverity code version.
Hope this fixes the build for PRs.
2015-07-29 12:21:17 +02:00

29 lines
1.3 KiB
YAML

version: 1.0.{build}
install:
- nuget restore
configuration: Release
platform: Any CPU
environment:
COVERALLS_REPO_TOKEN:
secure: 2D6Q22+GyTngkC0xomWycgK0kXY4FepSad7Ep/R3R8xha+xEPisCKBISSLCq0Sl0
CoverityProjectToken:
secure: pUUrynbyxCRpsAgGdKBVYDZCilwBmaWQ1Jg+rg5znr0=
CoverityNotificationEmail:
secure: m/ox72HU97EeJExWEFWx+0M9uov0cydn6E8mSaQzsQE=
build:
project: HtmlSanitizer.sln
verbosity: minimal
after_build:
- ps: |
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
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"
}
after_test:
# generate report for NUnit testing framework:
- 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
- packages\coveralls.io.1.3.4\tools\coveralls.net.exe --opencover coverage.xml