Skip to content

Commit 473007b

Browse files
AshCrippsAshCripps
authored andcommitted
Edit install script to install more xcodes + edit manual steps
1 parent 81c0518 commit 473007b

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

ansible/MANUAL_STEPS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and change:
1111
to
1212
`%admin ALL = (ALL) NOPASSWD:ALL`
1313

14+
also add this line to allow the jenkins user to change xcode version
15+
`iojs ALL=(ALL) NOPASSWD: /usr/bin/xcode-select`
16+
1417
2. Allow ssh access
1518

1619
```bash

ansible/roles/package-upgrade/files/install-xcode.sh

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,28 @@
66
osx_vers=$(sw_vers -productVersion | awk -F "." '{print $2}')
77
cmd_line_tools_temp_file="/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress"
88

9-
# Installing the latest Xcode command line tools on 10.9.x or higher
9+
# Installing xcode for 10.14+
10+
11+
if [[ "$osx_vers" -ge 14 ]]; then
12+
wget -P /tmp/ foo.bar/Xcode10.xip #Placeholder URL
13+
xip --expand /tmp/Xcode10.xip
14+
mv /tmp/Xcode.app /Applications/Xcode10.app
15+
fi
16+
17+
# Installing xcodes for 10.13
18+
19+
if [[ "$osx_vers" -ge 13 ]]; then
20+
wget -P /tmp/ foo.bar/Xcode10.xip #Placeholder URL
21+
xip --expand /tmp/Xcode10.xip
22+
mv /tmp/Xcode.app /Applications/Xcode10.app
23+
# Install second xcode
24+
wget -P /tmp/ foo.bar/Xcode8.xip #Placeholder URL
25+
xip --expand /tmp/Xcode8.xip
26+
mv /tmp/Xcode.app /Applications/Xcode8.app
27+
fi
28+
29+
30+
# Installing the latest Xcode command line tools on 10.9.x - 10.12.x
1031

1132
if [[ "$osx_vers" -ge 9 ]]; then
1233
touch "$cmd_line_tools_temp_file";

0 commit comments

Comments
 (0)