language: csharp  

# dotnet cli require Ubuntu 14.04
sudo: required
dist: trusty

# dotnet cli require OSX 10.10
# osx_image: xcode7.1

addons:
  apt:
    packages:
    - gettext
    - libcurl4-openssl-dev
    - libicu-dev
    - libssl-dev
    - libunwind8
    - zlib1g

os:
#  - osx
  - linux

env:  
  - CLI_VERSION=latest

before_install:
  # Install OpenSSL
  - if test "$TRAVIS_OS_NAME" == "osx"; then
      brew update;
      brew install openssl;
      brew link --force openssl;
    fi

install:

 # Download script to install dotnet cli
  - curl -L --create-dirs https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh -o ./scripts/install.sh

  - export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"

 # Install the latest versio of dotnet CLI
  - bash ./scripts/install.sh --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR" --no-path

 # Add dotnet to PATH
  - export PATH="$DOTNET_INSTALL_DIR:$PATH"
  
script:
  - dotnet restore Source/

  # testing only netcoreapp1.0 on linux and OSX
  - dotnet test Source/AsyncIO.Tests -f netcoreapp1.0
language: csharp  

# dotnet cli require Ubuntu 14.04
sudo: required
dist: trusty

# dotnet cli require OSX 10.10
# osx_image: xcode7.1

addons:
  apt:
    packages:
    - gettext
    - libcurl4-openssl-dev
    - libicu-dev
    - libssl-dev
    - libunwind8
    - zlib1g

os:
#  - osx
  - linux

env:  
  - CLI_VERSION=latest

before_install:
  # Install OpenSSL
  - if test "$TRAVIS_OS_NAME" == "osx"; then
      brew update;
      brew install openssl;
      brew link --force openssl;
    fi

install:

 # Download script to install dotnet cli
  - curl -L --create-dirs https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh -o ./scripts/install.sh

  - export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"

 # Install the latest versio of dotnet CLI
  - bash ./scripts/install.sh --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR" --no-path

 # Add dotnet to PATH
  - export PATH="$DOTNET_INSTALL_DIR:$PATH"
  
script:
  - dotnet restore Source/

  # testing only netcoreapp1.0 on linux and OSX
  - dotnet test Source/AsyncIO.Tests -f netcoreapp2.0
Update to test under .NET Core 2.0.
Update to test under .NET Core 2.0.
