tart-macos-image-templates/templates/high-sierra-xcode.json

58 lines
1.4 KiB
JSON

{
"builders": [
{
"type": "veertu-anka",
"vm_name": "high-sierra-xcode-{{user `xcode_version`}}",
"source_vm_name": "high-sierra-base",
"cpu_count": "2",
"ram_size": "4G",
"disk_size": "80G",
"boot_delay": "30s"
}
],
"variables": {
"fastlane_user": "{{env `FASTLANE_USER`}}",
"fastlane_password": "{{env `FASTLANE_PASSWORD`}}",
"xcode_version": "9.4.1"
},
"provisioners": [
{
"inline": [
"sudo gem install fastlane cocoapods rake -NV",
"pod setup"
],
"type": "shell"
},
{
"environment_vars": [
"FASTLANE_USER={{user `fastlane_user`}}",
"FASTLANE_PASSWORD={{user `fastlane_password`}}",
"XCODE_VERSION={{user `xcode_version`}}"
],
"inline": [
"sudo gem install xcode-install",
"xcversion install $XCODE_VERSION",
"xcversion select $XCODE_VERSION",
"xcversion simulators --install='iOS 11.3'",
"xcversion simulators --install='watchOS 4.2'",
"xcversion cleanup"
],
"type": "shell"
},
{
"inline": [
"echo 'Disabling spotlight...'",
"sudo mdutil -a -i off"
],
"type": "shell"
},
{
"inline": [
"brew --version",
"brew update",
"brew install xctool"
],
"type": "shell"
}
]
}