Skip to content

Commit

Permalink
Fix travis-ci build (r3c#9)
Browse files Browse the repository at this point in the history
.Net Core part was broken: the 'dotnet' CLI now uses csproj/msbuild instead of project.json
  • Loading branch information
gboucher90 authored and r3c committed Dec 10, 2016
1 parent 647060c commit 0acedc5
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
language: csharp
solution: Cottle.sln
sudo: required
dist: trusty
os:
- linux
branches:
only:
- master
addons:
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
env:
- CLI_VERSION=latest

matrix:
include:
- os: linux # Ubuntu 14.04
dist: trusty
sudo: required
mono: latest
dotnet: 1.0.0-preview2-003121
env: DOTNETCORE=1

install:
- nuget restore Cottle.sln
- nuget install NUnit.Console -Version 3.0.1 -OutputDirectory tests
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
- curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR"
- export PATH="$DOTNET_INSTALL_DIR:$PATH"

script:
- xbuild /p:Configuration=Release Cottle.sln
- mono ./tests/NUnit.Console.3.0.1/tools/nunit3-console.exe ./Cottle.Test/bin/Release/Cottle.Test.dll
Expand Down

0 comments on commit 0acedc5

Please sign in to comment.