Skip to content

Commit b606768

Browse files
committed
Add travis.yml
1 parent a5058f5 commit b606768

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: csharp
2+
mono: none
3+
dotnet: 2.1
4+
script:
5+
- dotnet --list-runtimes
6+
- dotnet --list-sdks
7+
- make all
8+
- make check
9+
- make run-samples

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ check:
66

77
run-samples:
88
rm -rf ~/.nuget.orig && mv ~/.nuget ~/.nuget.orig && mkdir -p ~/.nuget
9-
cd Samples && ../turkey || true
9+
cd Samples && test -f ../turkey && (bash ../turkey || true)
1010
rm -rf ~/.nuget && mv ~/.nuget.orig ~/.nuget
1111

1212
publish:

Turkey/DotNet.cs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public List<Version> RuntimeVersions
2626
string output = p.StandardOutput.ReadToEnd();
2727
var list = output
2828
.Split("\n", StringSplitOptions.RemoveEmptyEntries)
29+
.Where(line => line.StartsWith("Microsoft.NETCore.App"))
2930
.Select(line => line.Split(" ")[1])
3031
.Select(versionString => Version.Parse(versionString))
3132
.OrderBy(x => x)

0 commit comments

Comments
 (0)