我的 travis 构建突然开始失败(在 before_deploy 和 deploy 之间):
Ruby ruby-2.2.5 is not installed.
The command "rvm 2.2.5 --fuzzy do ruby -S gem install dpl" failed and exited with 2 during .
想法如何解决这个问题?
.travis.yaml
before_deploy:
- export PATH=$PATH:${CLOUD_SDK_PATH}/bin
- openssl aes-256-cbc -K $encrypted_c09a72752447_key -iv $encrypted_c09a72752447_iv -in contrib/gae/secrets.tar.enc -out secrets.tar -d
- tar xvf secrets.tar
deploy:
- provider: script
skip_cleanup: true
script: fab deploy:target='DEV',ci=True
on: develop
最佳答案
我也刚打了这个。作为解决方法,您可以显式安装 ruby 2.2.5,将安装命令添加到我的 before_install
步骤对我有用:
before_install:
- rvm install 2.2.5
关于ruby - Travis 构建失败 : Ruby ruby-2. 2.5 未安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40344231/