New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use osx on travis-ci? #494
Comments
nevermind, just tried this myself and that didn't seem like it was ever going to end |
reopening this. I got it working in 24 minutes for my fork of laptop which does a bunch more stuff. https://travis-ci.org/WPMedia/laptop/builds/245425407 here is a travis ci config that works:
The only change I needed to make was adding sudo to the chsh command and appending "$USER" at the end of it. |
@AlJohri Running the In case it saves someone a minute, Al’s related work on the WPMedia fork: |
@gohanlon thanks! One other change I made which wasn't necessary but sped things up a bit was using the travis binary for ruby instead of compiling it on the fly: https://github.com/WPMedia/laptop/blob/b1f6ea5640932cfab2725b8749c24a19326c94e8/mac#L161-L169 if ! rbenv versions | grep -Fq "$ruby_version"; then
if [ "$CI" == "true" ]; then
wget "http://rubies.travis-ci.org/osx/10.12/x86_64/ruby-$ruby_version.tar.bz2"
tar -xf "ruby-$ruby_version.tar.bz2"
mv "ruby-$ruby_version" "$HOME/.rbenv/versions/$ruby_version"
else
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/opt/openssl rbenv install -s "$ruby_version"
fi
fi |
Waiting for Ruby builds is no fun. Although I’m torn, I lean towards not applying that speedup. The speedup is no doubt huge and is only substituting a step that should already be well tested outside of Laptop. But, sometimes Side note: I think using openssl from homebrew is a default |
* Move off Travis to Circle. * Run the entire script on macOS infrastructure. We're cheating slightly with this implementation, but seems worth it for speed of build tradeoff: * Use pre-installed XCode for compilers, etc. * Use pre-installed Ruby version. Related: #494
* Move off Travis to Circle. * Run the entire script on macOS infrastructure. * Performance optimization: Enforce a Ruby version to skip Ruby install We're cheating slightly with this implementation, but seems worth it for speed of build tradeoff: * Use pre-installed XCode for compilers, etc. * Use pre-installed Ruby version. Related: #494
* Move off Travis to Circle. * Run the entire script on macOS infrastructure. * Performance optimization: Enforce a Ruby version to skip Ruby install We're cheating slightly with this implementation, but seems worth it for speed of build tradeoff: * Use pre-installed XCode for compilers, etc. * Use pre-installed Ruby version. Related: #494
* Move off Travis to Circle. * Run the entire script on macOS infrastructure. * Performance optimization: Enforce a Ruby version to skip Ruby install We're cheating slightly with this implementation, but seems worth it for speed of build tradeoff: * Use pre-installed XCode for compilers, etc. * Use pre-installed Ruby version. Related: thoughtbot#494
I'm curious why you don't currently try actually running the mac script on travis?
The text was updated successfully, but these errors were encountered: