version: '1.0.{build}'
image: Visual Studio 2017
platform: Any CPU
configuration: [Debug, Release]
cache: '%USERPROFILE%\.nuget\packages'

build:
  parallel: true

before_build:
  - dotnet --info
  - dotnet restore
build_script:
  - dotnet build

test_script: |-
  set COVERAGE_FILE=coverage.xml
  set OPENCOVER="%USERPROFILE%\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe"
  set DOTNET="%ProgramFiles%\dotnet\dotnet.exe"
  set TEST_PROJECT="test\Nuhaven.Collections.Generic.Extensions.Tests\Nuhaven.Collections.Generic.Extensions.Tests.csproj"
  %OPENCOVER% -register:user -target:%DOTNET% -targetargs:"test %TEST_PROJECT%" -output:%COVERAGE_FILE% -oldStyle
  set PATH=C:\Python36;C:\Python36\Scripts;%PATH%
  python -m pip install codecov
  codecov -f %COVERAGE_FILE% -t %CODECOV_TOKEN%

version: '1.0.{build}'
image: Visual Studio 2017
platform: Any CPU
configuration: [Debug, Release]
cache: '%USERPROFILE%\.nuget\packages'

build:
  parallel: true

before_build:
  - dotnet --info
  - dotnet restore
build_script:
  - dotnet build

test_script: |-
  set COVERAGE_FILE=coverage.xml
  set OPENCOVER="%USERPROFILE%\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe"
  set DOTNET="%ProgramFiles%\dotnet\dotnet.exe"
  set TEST_PROJECT="test\Nuhaven.Collections.Generic.Extensions.Tests\Nuhaven.Collections.Generic.Extensions.Tests.csproj"
  %OPENCOVER% -register:user -target:%DOTNET% -targetargs:"test %TEST_PROJECT%" -output:%COVERAGE_FILE% -oldStyle
  set PATH=C:\Python36;C:\Python36\Scripts;%PATH%
  python -m pip install codecov
  codecov -f %COVERAGE_FILE%

Remove codecov already default token parameter
Remove codecov already default token parameter
