Shippable / support

Shippable SaaS customers can report issues and feature requests in this repository
101 stars 28 forks source link

/root/.rvm/scripts/rvm: No such file or directory #2609

Closed sushantbajra closed 8 years ago

sushantbajra commented 8 years ago
# language setting
language: ruby
rvm: 2.3.0

addons:
  firefox: "44.0"

services:
  - selenium

env:
  global:
    - DISPLAY=:99.0
    - CI_REPORTS=shippable/testresults COVERAGE_REPORTS=shippable/codecoverage

integrations:
  notifications:
    - integrationName: email
      type: email
      recipients:
        - ms-dev@bajratechnologies.com
      on_failure: true
      on_success: true

build:
  ci:
    - source ~/.rvm/scripts/rvm
    - rvm install $SHIPPABLE_RUBY --verify-downloads 1
    - source ~/.bashrc && ~/.rvm/scripts/rvm && rvm use $SHIPPABLE_RUBY
    - bundle install --gemfile="Gemfile"
    - /etc/init.d/xvfb start
    - mkdir -p shippable/testresults
    - mkdir -p shippable/codecoverage
    - bundle exec cucumber

  on_success:
    - /etc/init.d/xvfb stop

cache: true

Somehow my builds are failing because I am getting this err

/root/b75fc1ae-ccaa-442f-9745-a94ad2b3799b.sh: line 58: /root/.rvm/scripts/rvm: No such file or directory

I had no problems before but now I am having that issue. How can i fix it?

a-murphy commented 8 years ago

It looks a result of changing your build image from shippable/minv2 to drydock/u14ruball:prod. Since drydock/u14ruball is a newer image, the RVM path is now /usr/local/rvm instead of $HOME/.rvm. However, the setup_ruby step in your build should be making sure that the correct version is installed and in use. So you shouldn't need the first three lines of your ci section.