Skip to content

Commit 5cee2fe

Browse files
committed
C#: require OSX >= 10.12 for .NET Core 2.0
Fixes travis-ci/travis-ci#8617
1 parent e9164e7 commit 5cee2fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/travis/build/script/csharp.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ def install_dotnet
130130
sh.cmd 'sudo apt-get update -qq', timing: true, assert: true
131131
sh.cmd "sudo apt-get install -qq dotnet-#{dotnet_package_prefix}-#{config[:dotnet]}", timing: true, assert: true
132132
when 'osx'
133-
sh.if '$(sw_vers -productVersion | cut -d . -f 2) -lt 11' do
133+
min_osx_minor = 11
134+
min_osx_minor = 12 if is_dotnet_after_2_0_prev_2?
135+
sh.if "$(sw_vers -productVersion | cut -d . -f 2) -lt #{min_osx_minor}" do
134136
sh.failure "The version of this operating system is not supported by .NET Core. View valid versions at https://docs.travis-ci.com/user/languages/csharp/"
135137
end
136138
sh.cmd 'brew update', timing: true, assert: true

0 commit comments

Comments
 (0)