os: Visual Studio 2017 version: 1.0.2.{build} configuration: - Debug platform: Any CPU init: - ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0") install: - ps: Start-FileDownload 'https://download.microsoft.com/download/8/F/9/8F9659B9-E628-4D1A-B6BF-C3004C8C954B/dotnet-1.1.1-sdk-win-x64.exe' - cmd: dotnet-1.1.1-sdk-win-x64.exe /quiet - ps: $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "true" environment: PATH: $(PATH);$(PROGRAMFILES)\dotnet\ COVERALLS_REPO_TOKEN: secure: Eq/3VV5DVAeQAlQhe6hvy21IYPo5uY4fWKxvC4pxdq3giJzcwFp1QxBvRpXJ8Wkw before_build: - dotnet restore .\src\WireMock.Net\WireMock.Net.csproj - nuget restore .\examples\WireMock.Net.ConsoleApplication\WireMock.Net.ConsoleApplication.csproj -PackagesDirectory packages build_script: # build WireMock.Net - dotnet build .\src\WireMock.Net\WireMock.Net.csproj -c %CONFIGURATION% # restore and build WireMock.Net.Tests - dotnet restore .\test\WireMock.Net.Tests\WireMock.Net.Tests.csproj - dotnet build .\test\WireMock.Net.Tests\WireMock.Net.Tests.csproj -c %CONFIGURATION% # build WireMock.Net.ConsoleApplication - cmd: msbuild .\examples\WireMock.Net.ConsoleApplication\WireMock.Net.ConsoleApplication.csproj /p:Configuration=%CONFIGURATION% /p:Platform=AnyCPU test_script: - nuget.exe install OpenCover -ExcludeVersion - nuget.exe install coveralls.net -ExcludeVersion - pip install codecov - OpenCover\tools\OpenCover.Console.exe -register:user -target:"dotnet.exe" -targetargs:"test .\test\WireMock.Net.Tests" -returntargetcode -filter:"+[WireMock.Net]*" -output:coverage.xml -oldstyle -searchdirs:".\test\WireMock.Net.Tests\bin\%CONFIGURATION%\net452" - "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%" - codecov -f "coverage.xml" - coveralls.net\tools\csmacnz.Coveralls.exe --opencover -i .\coverage.xml