version: 1.1.0.{build}
image: Visual Studio 2017
pull_requests:
  do_not_increment_build_number: true
branches:
  only:
  - master
test:
  # only assemblies to test
  assemblies:
    only:
      - OutputColorizer.Tests.dll

configuration: Release
before_build:
- cmd: dotnet restore
build_script:
- cmd: build.cmd Release
artifacts:
- path: '**\*.nupkg'
after_test:
- choco install opencover.portable
- choco install dotnetcore-sdk --version 2.1.300 --force
- choco install codecov
- OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -oldstyle -targetargs:"test -c Release test\OutputColorizer.Tests.csproj" -output:outputcolorizer.xml
- codecov -f "outputcolorizer.xml"

version: 1.1.0.{build}
image: Visual Studio 2019
pull_requests:
  do_not_increment_build_number: true
branches:
  only:
  - master
test:
  # only assemblies to test
  assemblies:
    only:
      - OutputColorizer.Tests.dll

configuration: Release
before_build:
- cmd: dotnet restore
build_script:
- cmd: build.cmd Release
artifacts:
- path: '**\*.nupkg'
after_test:
- choco install opencover.portable
- choco install dotnetcore-sdk --version 3.1.201 --force
- choco install codecov
- OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -oldstyle -targetargs:"test -c Release test\OutputColorizer.Tests.csproj" -output:outputcolorizer.xml
- codecov -f "outputcolorizer.xml"

Move to use .NET Core 3.1 for testing.
Move to use .NET Core 3.1 for testing.
