tart-macos-image-templates/templates/catalina-xcode.json

62 lines
1.4 KiB
JSON

{
"builders": [
{
"type": "veertu-anka",
"vm_name": "catalina-xcode-{{user `xcode_version`}}",
"source_vm_name": "catalina-base",
"cpu_count": "2",
"enable_htt": true,
"ram_size": "8G",
"disk_size": "80G",
"boot_delay": "30s"
}
],
"variables": {
"fastlane_user": "",
"fastlane_password": "",
"xcode_version": "11.5"
},
"provisioners": [
{
"inline": [
"source ~/.profile",
"brew --version",
"brew update",
"brew upgrade",
"sudo gem update",
"sudo gem install fastlane cocoapods rake xcpretty -NV"
],
"type": "shell"
},
{
"environment_vars": [
"XCODE_VERSION={{user `xcode_version`}}",
"FASTLANE_PASSWORD={{user `fastlane_password`}}",
"FASTLANE_USER={{user `fastlane_user`}}"
],
"inline": [
"source ~/.profile",
"sudo gem install xcode-install",
"xcversion install $XCODE_VERSION",
"xcversion select $XCODE_VERSION",
"xcversion cleanup",
"sudo xcodebuild -runFirstLaunch"
],
"type": "shell"
},
{
"inline": [
"brew install xctool"
],
"type": "shell"
},
{
"inline": [
"echo 'Disabling spotlight...'",
"sudo mdutil -a -i off"
],
"type": "shell"
}
]
}