From b6c377af7181788235a33f11012f0c40be46a14f Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 23 Dec 2016 00:05:03 +1100 Subject: [PATCH] Attempt to get x-plat builds running .travis.yml cobbled together from samples at https://docs.microsoft.com/en-us/dotnet/articles/core/tools/using-ci-with-cli --- .travis.yml | 20 ++++++++++++++------ NuGet.config | 3 ++- src/ImageSharp/project.json | 3 +++ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3db25a91f1..e0f2a6cd43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,22 @@ language: csharp -sudo: required -dist: trusty -dotnet: 1.0.0-preview2-003121 -mono: none solution: ImageSharp.sln -branches: +matrix: + include: + - os: linux # Ubuntu 14.04 + dist: trusty + sudo: required + dotnet: 1.0.0-preview2-003121 + mono: latest + - os: osx # OSX 10.11 + osx_image: xcode7.2 + dotnet: 1.0.0-preview2-003121 + mono: latest + +branches: only: - master - + script: - cd src/ImageSharp/ - dotnet restore diff --git a/NuGet.config b/NuGet.config index 05430a8ee7..b2c967cc97 100644 --- a/NuGet.config +++ b/NuGet.config @@ -1,7 +1,8 @@  + - + \ No newline at end of file diff --git a/src/ImageSharp/project.json b/src/ImageSharp/project.json index 5d6d1ca946..33272594de 100644 --- a/src/ImageSharp/project.json +++ b/src/ImageSharp/project.json @@ -64,6 +64,9 @@ } }, "net45": { + "dependencies": { + "System.Runtime": "4.0.0" + } } } } \ No newline at end of file