Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis CI updated to use dotnet CLI #28

Merged
merged 2 commits into from
Sep 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
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:
- latest
dotnet: 2.0.0
env: MONO_BASE_PATH=/usr/lib/mono/

install:
- dotnet restore
Expand All @@ -17,5 +20,12 @@ 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
- 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"
# 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