If you use Ruby 2.5.0 on our legacy 1.0 platform you may be affected by this bug.
/home/travis/.rvm/rubies/ruby-2.5.0/bin/ruby: bad interpreter: No such file or directory
On the Ubuntu 14.04 Trusty build images we’re still using
rvm to manage and install rubies:
In an ironic turn of fate, we’ve received several reports of builds failing on CircleCI due to a dependency on the
/home/travis directory when installing the Ruby 2.5.0 binaries that TravisCI provides for
(More on the Travis CI precompiled Ruby binaries here: http://rubies.travis-ci.org/usage)
There is a workaround:
You will need to add this to your config:
sudo ln -s /opt/circleci /home/travis
A complete example:
- sudo ln -s /opt/circleci /home/travis
- ruby -v
Here is an example build which shows it:
Please reach out if you have any questions or concerns.