mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Fix RVM under Travis caching by excluding node-which from $PATH
See https://github.com/travis-ci/travis-ci/issues/5092 for more details. Reverts #18376
This commit is contained in:
parent
5e9b365b25
commit
672f9b6d73
11
.travis.yml
11
.travis.yml
@ -6,6 +6,8 @@ node_js:
|
|||||||
- "4"
|
- "4"
|
||||||
- "5"
|
- "5"
|
||||||
before_install:
|
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 install 2.2
|
||||||
- rvm use 2.2 --fuzzy
|
- rvm use 2.2 --fuzzy
|
||||||
- export GEMDIR=$(rvm gemdir)
|
- export GEMDIR=$(rvm gemdir)
|
||||||
@ -19,11 +21,10 @@ install:
|
|||||||
- cp grunt/npm-shrinkwrap.json ./
|
- cp grunt/npm-shrinkwrap.json ./
|
||||||
- npm install -g grunt-cli
|
- npm install -g grunt-cli
|
||||||
- npm install
|
- npm install
|
||||||
# Caching disabled due to https://github.com/travis-ci/travis-ci/issues/5092
|
cache:
|
||||||
#cache:
|
directories:
|
||||||
# directories:
|
- node_modules
|
||||||
# - node_modules
|
- vendor/bundle
|
||||||
# - vendor/bundle
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- SAUCE_USERNAME="bootstrap"
|
- SAUCE_USERNAME="bootstrap"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user