Skip to content

Commit

Permalink
Merge pull request #3 from enricosada/add_netcoresdk_to_travis
Browse files Browse the repository at this point in the history
add .netcore sdk to travis
  • Loading branch information
matthid authored Aug 25, 2016
2 parents aa1b190 + 0c0c8c1 commit a1a7dc1
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
language: csharp

sudo: false # use the new container-based Travis infrastructure
addons:
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g

script:
- ./build.sh
matrix:
include:
- os: linux # Ubuntu 14.04
dist: trusty
sudo: required
env: DOTNET_SDK_URL=https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/1.0.0-preview2-003121/dotnet-dev-ubuntu-x64.1.0.0-preview2-003121.tar.gz
- os: osx # OSX 10.11
osx_image: xcode7.2
env: DOTNET_SDK_URL=https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/1.0.0-preview2-003121/dotnet-dev-osx-x64.1.0.0-preview2-003121.tar.gz

before install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openssl ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --force openssl ; fi

install:
# Download .NET Core SDK and add to PATH
- export DOTNET_INSTALL_DIR="$PWD/.dotnetsdk"
- mkdir -p "$DOTNET_INSTALL_DIR"
- curl -L "$DOTNET_SDK_URL" | tar -xzv -C "$DOTNET_INSTALL_DIR"
- export PATH="$DOTNET_INSTALL_DIR:$PATH"

script:
- dotnet --info
- ./build.sh

0 comments on commit a1a7dc1

Please sign in to comment.