From b977cba130f630bd7921219b49128635a185c09b Mon Sep 17 00:00:00 2001 From: jivanek Date: Mon, 18 Sep 2017 10:37:57 +0200 Subject: [PATCH 1/2] travis CI updated to use dotnet CLI --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c4f349b..dacac0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,15 @@ language: csharp # Use container-based infrastructure with Ubuntu Trusty (14.04) +os: linux dist: trusty sudo: false # TODO : Enable both mono and dotnet builds: https://docs.travis-ci.com/user/languages/csharp/#Testing-Against-Mono-and-.NET-Core mono: - latest +dotnet: 2.0.0 +env: MONO_BASE_PATH=/usr/lib/mono/ install: - dotnet restore @@ -17,5 +20,7 @@ install: # https://docs.travis-ci.com/user/customizing-the-build/#Explicitly-Including-Jobs script: - - dotnet build ExtCore.sln - - dotnet test ExtCore.Tests\ExtCore.Tests.fsproj \ No newline at end of file + - dotnet build ExtCore/ExtCore.fsproj --framework "netstandard2.0" + - FrameworkPathOverride=$MONO_BASE_PATH/4.5-api/ dotnet build ExtCore/ExtCore.fsproj --framework "net45" + - dotnet test ExtCore.Tests/ExtCore.Tests.fsproj --framework "netcoreapp2.0" + - FrameworkPathOverride=$MONO_BASE_PATH/4.5-api/ dotnet test ExtCore.Tests/ExtCore.Tests.fsproj --framework "net45" From 96b06262e52cae914379f2569d9af5e6cf882bf4 Mon Sep 17 00:00:00 2001 From: jindraivanek Date: Sat, 23 Sep 2017 13:24:26 +0200 Subject: [PATCH 2/2] workaround for net45 test --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index dacac0a..9116ca8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: csharp # Use container-based infrastructure with Ubuntu Trusty (14.04) os: linux dist: trusty -sudo: false +sudo: required # TODO : Enable both mono and dotnet builds: https://docs.travis-ci.com/user/languages/csharp/#Testing-Against-Mono-and-.NET-Core mono: @@ -23,4 +23,9 @@ script: - dotnet build ExtCore/ExtCore.fsproj --framework "netstandard2.0" - FrameworkPathOverride=$MONO_BASE_PATH/4.5-api/ dotnet build ExtCore/ExtCore.fsproj --framework "net45" - dotnet test ExtCore.Tests/ExtCore.Tests.fsproj --framework "netcoreapp2.0" - - FrameworkPathOverride=$MONO_BASE_PATH/4.5-api/ dotnet test ExtCore.Tests/ExtCore.Tests.fsproj --framework "net45" +# - FrameworkPathOverride=$MONO_BASE_PATH/4.5-api/ dotnet test ExtCore.Tests/ExtCore.Tests.fsproj --framework "net45" +# Workaround for dotnet test on net45: + - FrameworkPathOverride=$MONO_BASE_PATH/4.5-api/ dotnet build ExtCore.Tests/ExtCore.Tests.fsproj --framework "net45" + - nuget install NUnit.ConsoleRunner -Version 3.7.0 -OutputDirectory $PWD/packages + - mono packages/NUnit.ConsoleRunner.3.7.0/tools/nunit3-console.exe ExtCore.Tests/bin/Debug/net45/ExtCore.Tests.dll +