I had to solve some other issues, and got back around to this today. I finally got it working based on the input from this thread, so thank you. I’m posting my circle.yml file in the hopes it helps someone else trying to do a similar setup/operation.
Keep in mind that I’m trying to run a ruby on sinatra application test suite that has to run on OS X with Xcode installed. I’m not testing a Mac or iOS application (yet), so I don’t need the usual Xcode build operations. Instead i need to set the ruby version I need (2.3.1), update bundler and then only run bundle exec rake, not Xcode build.
The other thing I needed done is the location of Xcode to be /Applications/Xcode.app, so I do a quick symlink to the 7.3.app location. This may break if circleCI changes the way they deploy their container. However, for now it works.
Like I said, this is working for me, hope it helps someone else…
## Customize the test machine machine: environment: XCODE_SCHEME: symbolicator XCODE_WORKSPACE: symbolicator # Turn off Ruby whinning RUBYOPT: W0 xcode: version: 7.3 dependencies: pre: # The application is expecting xcode to be installed in its normal location - sudo ln -s /Applications/Xcode-7.3.app /Applications/Xcode.app - brew uninstall --force ruby20 - brew install --force ruby - gem install bundler test: override: - bundle exec rake
Sorry I can’t get the formatting on the preview to look right, hopefully you can figure out the indentation from my example. If someone has a better way to update the formatting, let me know.