Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit d1b323b

Browse files
committed
Update .travis.yml to support building for .NET Core
1 parent 312a0c6 commit d1b323b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
language: csharp
2+
mono: latest
3+
dotnet: 1.0.4
4+
dist: trusty
5+
26
solution: src/GitTools.Testing.sln
37
sudo: false
48
install:
5-
# - sudo nuget update -self
6-
- nuget restore src/GitTools.Testing.sln
79
- nuget install xunit.runner.console -Version 2.1.0 -OutputDirectory ./src/packages
810
script:
9-
- xbuild ./src/GitTools.Testing.sln /property:Configuration="Debug" /verbosity:detailed
10-
- mono --debug --runtime=v4.0.30319 ./src/packages/xunit.runner.console.2.1.0/tools/xunit.console.exe ./src/GitTools.Testing.Tests/bin/Debug/GitTools.Testing.Tests.dll
11+
- dotnet restore src/GitTools.Testing.sln
12+
- msbuild ./src/GitTools.Testing.sln /property:Configuration=Debug
13+
- dotnet test ./src/GitTools.Testing.Tests/GitTools.Testing.Tests.csproj --configuration Debug --no-build --framework netcoreapp1.0
14+
# Disable testing against .NET 4.5.2 through Mono because it tries to resolve
15+
# the Windows libgit binary instead of the linux one.
16+
# - mono --debug --runtime=v4.0.30319 ./src/packages/xunit.runner.console.2.1.0/tools/xunit.console.exe ./src/GitTools.Testing.Tests/bin/Debug/net452/GitTools.Testing.Tests.dll

0 commit comments

Comments
 (0)