Skip to content

Commit

Permalink
Edit install script to install more xcodes + edit manual steps
Browse files Browse the repository at this point in the history
  • Loading branch information
AshCripps authored and AshCripps committed Oct 29, 2019
1 parent 81c0518 commit 473007b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ansible/MANUAL_STEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ and change:
to
`%admin ALL = (ALL) NOPASSWD:ALL`

also add this line to allow the jenkins user to change xcode version
`iojs ALL=(ALL) NOPASSWD: /usr/bin/xcode-select`

2. Allow ssh access

```bash
Expand Down
23 changes: 22 additions & 1 deletion ansible/roles/package-upgrade/files/install-xcode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,28 @@
osx_vers=$(sw_vers -productVersion | awk -F "." '{print $2}')
cmd_line_tools_temp_file="/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress"

# Installing the latest Xcode command line tools on 10.9.x or higher
# Installing xcode for 10.14+

if [[ "$osx_vers" -ge 14 ]]; then
wget -P /tmp/ foo.bar/Xcode10.xip #Placeholder URL
xip --expand /tmp/Xcode10.xip
mv /tmp/Xcode.app /Applications/Xcode10.app
fi

# Installing xcodes for 10.13

if [[ "$osx_vers" -ge 13 ]]; then
wget -P /tmp/ foo.bar/Xcode10.xip #Placeholder URL
xip --expand /tmp/Xcode10.xip
mv /tmp/Xcode.app /Applications/Xcode10.app
# Install second xcode
wget -P /tmp/ foo.bar/Xcode8.xip #Placeholder URL
xip --expand /tmp/Xcode8.xip
mv /tmp/Xcode.app /Applications/Xcode8.app
fi


# Installing the latest Xcode command line tools on 10.9.x - 10.12.x

if [[ "$osx_vers" -ge 9 ]]; then
touch "$cmd_line_tools_temp_file";
Expand Down

0 comments on commit 473007b

Please sign in to comment.