Travis CIのxcode9.4イメージにbundlerがプリインストールされてない模様
Travis CIのosx_image: xcode9.4
がリリースされたので試してみました。
✨Xcode 9.4 is here! 🚀Set ‘osx_image: xcode9.4’ in your .yml file and you’re off to the races. As always, if you have any questions or something doesn’t work as expected, we can be reached at support@travis-ci.com Read more here: https://t.co/kxZyIa8iJw
— Travis CI (@travisci) 2018年6月15日
しかしbefore_install
でエラー発生。どうやらbundlerが見つかってない模様です。osx_image: xcode9.3
までは正常に動作していたのですが、9.4にしただけでビルドがこけるようになってしまいました。
$ sudo bundle install /Users/travis/.rvm/rubies/ruby-2.4.3/lib/ruby/2.4.0/rubygems.rb:271:in `find_spec_for_exe': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException) from /Users/travis/.rvm/rubies/ruby-2.4.3/lib/ruby/2.4.0/rubygems.rb:299:in `activate_bin_path' from /Users/travis/.rvm/gems/ruby-2.4.3/bin/bundle:23:in `<main>' from /Users/travis/.rvm/gems/ruby-2.4.3/bin/ruby_executable_hooks:15:in `eval' from /Users/travis/.rvm/gems/ruby-2.4.3/bin/ruby_executable_hooks:15:in `<main>' The command "sudo bundle install" failed and exited with 1 during .
公式ドキュメントのプリインストールされてるGem一覧には変わらずbundlerも含まれています。
The OS X Build Environment - Travis CI
- bundler
- rake
- cocoapods
ということでGithubにissue作りました。どんなカンバセーションがされるでしょうか。
追記
時間がかかりましたが、Travisのissueで返答がありました。
root
ユーザではbundlerが使えなかったみたいです。ということでsudo bundle install
からbundle install
に変更すればokでした。
osx_image: xcode9.4 doesn't have bundler · Issue #9759 · travis-ci/travis-ci · GitHub