language: csharp
sudo: required
matrix:
  include:
    - os: linux
      dist: trusty
      mono: latest
    - os: linux
      dist: trusty
      mono: 4.6.2
    - os: osx
      mono: latest
    - os: osx
      mono: 4.6.2
  fast_finish: true

script:
  - ./build.sh --target "Travis" --configuration "Release"

language: csharp
sudo: required

dotnet: 2.1.4 # SDK version; includes runtime version 2.0.5. Need 2.0+ for netcoreapp2.0 tests.

mono: 5.10.0 # Need 5.2+ for the included MSBuild.

matrix:
  include:
    - os: linux
      install:
        - sudo apt-get install dotnet-sharedframework-microsoft.netcore.app-1.1.6

    - os: osx
      install:
        - curl https://download.microsoft.com/download/A/7/E/A7EF2AFF-F77B-4F77-A21B-0F7BD09A4065/dotnet-osx-x64.1.1.6.pkg -O
        - sudo installer -pkg dotnet-osx-x64.1.1.6.pkg -target /

      # .NET Core 2 requires OSX 10.12+
      # https://github.com/dotnet/core/blob/master/release-notes/2.0/2.0-supported-os.md#macos
      # https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
      osx_image: xcode9.1

script:
  - ./build.sh --target=Travis --configuration=Release

Switch to same build dependendies as the framework for Travis
Switch to same build dependendies as the framework for Travis
