试着跑
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi
Run Code Online (Sandbox Code Playgroud)
在before_install,我最终
/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
Run Code Online (Sandbox Code Playgroud)
所以我认为这里的问题是ruby版本2.0,我确认了ruby --version.有趣的是,我的构建突然停止工作,没有任何改变.travis.yml.
那么我该如何实际更改Ruby版本呢?
可能重要的是,在git clone运行之前,我得到这个:
$ rvm use
Warning! PATH is not properly set up, '/Users/travis/.rvm/gems/ruby-2.0.0-p648/bin' is …Run Code Online (Sandbox Code Playgroud)