language: csharp
dotnet: 2.1.300-preview2-008533
env:
  global:
    - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
    - DOTNET_CLI_TELEMETRY_OPTOUT=true
mono:
 - latest
matrix:
  include:
    - os: linux
      dist: trusty      
      sudo: required
      install:
        - curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
        - sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
        - sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
        - sudo apt-get update
        - sudo apt-get install dotnet-sdk-2.0.3
    - os: osx
      osx_image: xcode9       
      sudo: required
      install:
        - ulimit -n8192  
        - curl https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh
        - chmod +x dotnet-install.sh
        - ./dotnet-install.sh --channel 2.0             
script:    
  - chmod +x build.sh
  - ./build.sh

language: csharp
dotnet: 2.1.300-preview2-008533
env:
  global:
    - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
    - DOTNET_CLI_TELEMETRY_OPTOUT=true
mono:
 - latest
matrix:
  include:
    - os: linux
      dist: trusty      
      sudo: required
      install:
        - curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
        - sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
        - sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
        - sudo apt-get update
        - sudo apt-get install dotnet-sdk-2.0.3
    - os: osx
      osx_image: xcode9       
      sudo: required
      install:
        - ulimit -n8192  
        - sudo curl -L https://download.microsoft.com/download/5/D/F/5DF4B836-7DFD-4CCF-AC96-101E2A4C7421/dotnet-sdk-2.1.2-osx-x64.pkg -o dotnet-sdk.pkg
        - sudo installer -pkg dotnet-sdk.pkg -target /
        - dotnet --info        
script:      
  - chmod +x build.sh
  - ./build.sh

Use sdk pkg on osx
Use sdk pkg on osx
