image: Visual Studio 2017

before_build:
  - dotnet --info
  - dotnet restore

build_script:
  - for /f "delims=" %%i in ('tools\GitVersion.CommandLine\tools\GitVersion.exe /showvariable NuGetVersion') do set NuGetVersion=%%i
  - dotnet build test\InfoCarrier.Core.FunctionalTests\InfoCarrier.Core.FunctionalTests.csproj
  - dotnet pack src\InfoCarrier.Core\InfoCarrier.Core.csproj --output "..\..\artifacts" --configuration Debug --include-symbols

test_script:
  - dotnet test test\InfoCarrier.Core.FunctionalTests\InfoCarrier.Core.FunctionalTests.csproj

artifacts:
  path: artifacts

image: Visual Studio 2017

environment:
  Test__SqlServer__DefaultConnection: Server=(local)\SQL2016;Database=master;User ID=sa;Password=Password12!

services: mssql2016

before_build:
  - dotnet --info
  - dotnet restore

build_script:
  - for /f "delims=" %%i in ('tools\GitVersion.CommandLine\tools\GitVersion.exe /showvariable NuGetVersion') do set NuGetVersion=%%i
  - dotnet build test\InfoCarrier.Core.FunctionalTests\InfoCarrier.Core.FunctionalTests.csproj
  - dotnet pack src\InfoCarrier.Core\InfoCarrier.Core.csproj --output "..\..\artifacts" --configuration Debug --include-symbols

test_script:
  - dotnet test test\InfoCarrier.Core.FunctionalTests\InfoCarrier.Core.FunctionalTests.csproj

artifacts:
  path: artifacts

Set up CI environment for SqlServer tests
Set up CI environment for SqlServer tests
