Travis构建失败:未安装Ruby ruby​​-2.2.5

时间:2016-10-31 14:28:52

标签: ruby travis-ci

我的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

2 个答案:

答案 0 :(得分:5)

我也打了这个。作为一种解决方法,您可以明确安装ruby 2.2.5,为我的before_install步骤添加安装命令对我有用:

before_install:
  - rvm install 2.2.5

答案 1 :(得分:1)

对不起,大家。我们今天早些时候部署得不好。现在应该修复。