From 71988409d52430e64ffa6f3f5a83e587e4cb7219 Mon Sep 17 00:00:00 2001 From: Jacob Zaval Date: Tue, 3 Apr 2018 11:26:39 -0700 Subject: [PATCH] update test cookbook since 9.3 can't install on Sierra --- test/cookbooks/macos_test/recipes/xcode.rb | 8 ++++++-- test/cookbooks/macos_test/recipes/xcode_beta.rb | 10 ++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/test/cookbooks/macos_test/recipes/xcode.rb b/test/cookbooks/macos_test/recipes/xcode.rb index 0728538..ef21beb 100644 --- a/test/cookbooks/macos_test/recipes/xcode.rb +++ b/test/cookbooks/macos_test/recipes/xcode.rb @@ -1,12 +1,16 @@ -if node['platform_version'].match? Regexp.union ['10.12', '10.13'] +if node['platform_version'].match? Regexp.union '10.13' execute 'Disable Gatekeeper' do command ['spctl', '--master-disable'] end include_recipe 'macos::xcode' -elsif node['platform_version'].match? Regexp.union '10.11' +elsif node['platform_version'].match? Regexp.union '10.12' + xcode '9.2' do + ios_simulators %w(11 10) + end +elsif node['platform_version'].match? Regexp.union '10.11' xcode '8.2.1' do ios_simulators %w(10 9) end diff --git a/test/cookbooks/macos_test/recipes/xcode_beta.rb b/test/cookbooks/macos_test/recipes/xcode_beta.rb index 1645590..dd5feaf 100644 --- a/test/cookbooks/macos_test/recipes/xcode_beta.rb +++ b/test/cookbooks/macos_test/recipes/xcode_beta.rb @@ -1,7 +1,5 @@ -if node['platform_version'].match? Regexp.union ['10.12', '10.13'] - execute 'Disable Gatekeeper' do - command ['spctl', '--master-disable'] - end - - xcode '9.4' +execute 'Disable Gatekeeper' do + command ['spctl', '--master-disable'] end + +xcode '9.4'