Skip to content

Commit

Permalink
Fix RVM under Travis caching by excluding node-which from $PATH
Browse files Browse the repository at this point in the history
See travis-ci/travis-ci#5092 for more details.
Reverts #18376
  • Loading branch information
cvrebert committed Jan 14, 2016
1 parent 5e9b365 commit 672f9b6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ node_js:
- "4"
- "5"
before_install:
# Remove ./node_modules/.bin from PATH so node-which doesn't replace Unix which and cause RVM to barf. See https://github.com/travis-ci/travis-ci/issues/5092
- export PATH=$(python -c 'from sys import argv;from collections import OrderedDict as od;print(":".join(od((p,None) for p in argv[1].split(":") if p.startswith("/")).keys()))' "$PATH")
- rvm install 2.2
- rvm use 2.2 --fuzzy
- export GEMDIR=$(rvm gemdir)
Expand All @@ -19,11 +21,10 @@ install:
- cp grunt/npm-shrinkwrap.json ./
- npm install -g grunt-cli
- npm install
# Caching disabled due to https://github.com/travis-ci/travis-ci/issues/5092
#cache:
# directories:
# - node_modules
# - vendor/bundle
cache:
directories:
- node_modules
- vendor/bundle
env:
global:
- SAUCE_USERNAME="bootstrap"
Expand Down

0 comments on commit 672f9b6

Please sign in to comment.