VersuchWie ändere ich Ruby-Version für Homebrew in MacOS in Travis CI?
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi
in before_install
, ich am Ende mit
/usr/local/Homebrew/Library/Homebrew/brew.rb:12:in \`<main>': Homebrew must be run under Ruby 2.3! (RuntimeError)
The command "if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi" failed and exited with 1 during .
Your build has been stopped.
/Users/travis/.travis/job_stages: line 166: shell_session_update: command not found
Also gehe ich davon aus das Problem hier ist, dass ruby
ist auf Version 2.0, die ich mit ruby --version
bestätigt zu laufen. Das Komische daran ist, dass meine Builds plötzlich aufhörten zu arbeiten, ohne Änderungen an .travis.yml.
Wie ändere ich eigentlich Ruby-Versionen?
Könnte nicht wichtig sein, dass vor git clone
läuft ich dieses:
$ rvm use
Warning! PATH is not properly set up, '/Users/travis/.rvm/gems/ruby-2.0.0-p648/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-2.0.0-p648'.
Ich habe ein ähnliches Problem bei der Installation von Mutt. Ich lese durch die folgenden, weiß nicht, ob relevant https://discuss.circleci.com/t/homebrew-must-be-run-under-ruby-2-3-runtimeerror/17232/6 –
Scheint wie Sie verwenden rvm, um Versionen von Ruby zu verwalten. Ist das richtig? – zee