From 231f97d056b8e8312c62150c66dfed15e4f623a7 Mon Sep 17 00:00:00 2001 From: maca88 Date: Sun, 5 Nov 2017 02:54:57 +0100 Subject: [PATCH] Added travis for OSX and Linux --- .travis.yml | 16 ++++++++++++++++ Nuget.config | 4 +--- Source/AsyncGenerator.Tests/app.config | 2 +- build.cake | 5 ++++- 4 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..8e691d03 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: csharp +matrix: + include: + - os: linux + mono: latest + - os: osx + mono: latest +script: + - sudo ./build.sh +git: + submodules: false +install: + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo nuget update -self; fi +cache: + directories: + - Source/packages \ No newline at end of file diff --git a/Nuget.config b/Nuget.config index b1780f60..fb001d29 100644 --- a/Nuget.config +++ b/Nuget.config @@ -5,9 +5,7 @@ - - - + diff --git a/Source/AsyncGenerator.Tests/app.config b/Source/AsyncGenerator.Tests/app.config index b7b938a8..4a2be962 100644 --- a/Source/AsyncGenerator.Tests/app.config +++ b/Source/AsyncGenerator.Tests/app.config @@ -28,7 +28,7 @@ - + diff --git a/build.cake b/build.cake index 2dc19fb5..9f9d3b64 100644 --- a/build.cake +++ b/build.cake @@ -43,7 +43,10 @@ Task("Restore-NuGet-Packages") .IsDependentOn("Clean") .Does(() => { - NuGetRestore("./Source/AsyncGenerator.sln"); + NuGetRestore("./Source/AsyncGenerator.sln", new NuGetRestoreSettings() + { + ConfigFile = "./Nuget.config" + }); }); Task("Build")