image:
  - Visual Studio 2017
  - Ubuntu1804

for:
  - matrix:
      only:
        - image: Visual Studio 2017

    cache:
      - '%USERPROFILE%\.nuget\packages -> **\*.csproj'

    before_build:
      - gitversion /l console /output buildserver

    build_script:
      - ps: src\build.ps1 $env:GitVersion_NuGetVersion

    test_script:
      - ps: src\test.ps1

    artifacts:
      - path: artifacts\Release\*.nupkg

    deploy:
      provider: Environment
      name: NuGet
      on:
        appveyor_repo_tag: true

  - matrix:
      only:
        - image: Ubuntu1804

    cache:
      - '$HOME/.nuget/packages -> **/*.csproj'

    build_script:
      - sh: src/build.sh

    test_script:
      - sh: src/test.sh

image:
  - Visual Studio 2019
  - Ubuntu1804

for:
  - matrix:
      only:
        - image: Visual Studio 2019

    cache:
      - '%USERPROFILE%\.nuget\packages -> **\*.csproj'

    before_build:
      - choco install GitVersion.Portable --version 4.0.0
      - gitversion /l console /output buildserver

    build_script:
      - ps: src\build.ps1 $env:GitVersion_NuGetVersion

    test_script:
      - ps: src\test.ps1

    artifacts:
      - path: artifacts\Release\*.nupkg

    deploy:
      provider: Environment
      name: NuGet
      on:
        appveyor_repo_tag: true

  - matrix:
      only:
        - image: Ubuntu1804

    cache:
      - '$HOME/.nuget/packages -> **/*.csproj'

    build_script:
      - sh: src/build.sh

    test_script:
      - sh: src/test.sh

Switch to Visual Studio 2019 AppVeyor image
Switch to Visual Studio 2019 AppVeyor image
