---
language: ruby
rvm: 2
cache:
  bundler: true
  directories:
    - bower_components
    - node_modules
sudo: false

before_script:
  - nvm install
  - npm install

before_install:
  - 'echo ''gem: --no-document'' > ~/.gemrc'

---
language: ruby
rvm: 2
cache:
  bundler: true
  directories:
    - bower_components
    - node_modules
sudo: false

before_install:
  - nvm install
  - 'echo ''gem: --no-document'' > ~/.gemrc'

before_script:
  - npm install

Move nvm install step to before_install
Move nvm install step to before_install
