Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis build fails: Ruby ruby-2.2.5 is not installed

Tags:

ruby

travis-ci

My travis build suddenly started to fail with (between before_deploy and 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 .

Ideas how to fix this?

.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
like image 839
glmvrml Avatar asked Oct 31 '16 14:10

glmvrml


Video Answer


2 Answers

I just hit this too. As a workaround, you might be able to install ruby 2.2.5 explicitly, adding an install command to my before_install step works for me:

before_install:
  - rvm install 2.2.5
like image 144
brabster Avatar answered Nov 04 '22 23:11

brabster


Sorry, everyone. We had a bad deploy earlier today. This should be fixed now.

like image 38
banzaiman Avatar answered Nov 04 '22 22:11

banzaiman