diff options
| author | Chris Rebert <[email protected]> | 2014-04-03 11:55:52 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-04-03 12:23:42 -0700 |
| commit | 1759569dbe8d9ebbcfc4bc1b7f87c3fe3e79e4d1 (patch) | |
| tree | 21129e81735cbef8c0ef6877d44e004f27e69a3e | |
| parent | 2878d6ef8301c56bb2394f6657675a8c4b2615d3 (diff) | |
| download | bootstrap-1759569dbe8d9ebbcfc4bc1b7f87c3fe3e79e4d1.tar.xz bootstrap-1759569dbe8d9ebbcfc4bc1b7f87c3fe3e79e4d1.zip | |
Travis: introduce $GEMDIR env var
| -rw-r--r-- | .travis.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index b17ca82b2..b9c051250 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,14 +4,15 @@ node_js: before_install: - time sudo pip install --use-mirrors -r test-infra/requirements.txt - rvm use 1.9.3 --fuzzy - - if [ "$TWBS_TEST" = validate-html ]; then echo "ruby=$(basename $(rvm gemdir)) jekyll=$JEKYLL_VERSION" > pseudo_Gemfile.lock; fi + - export GEMDIR=$(rvm gemdir) + - if [ "$TWBS_TEST" = validate-html ]; then echo "ruby=$(basename $GEMDIR) jekyll=$JEKYLL_VERSION" > pseudo_Gemfile.lock; fi install: - time npm install -g grunt-cli - ./test-infra/s3_cache.py download 'npm packages' test-infra/npm-shrinkwrap.canonical.json ./node_modules || time ./test-infra/uncached-npm-install.sh - - if [ "$TWBS_TEST" = validate-html ]; then ./test-infra/s3_cache.py download rubygems pseudo_Gemfile.lock $(rvm gemdir) || time gem install -N jekyll -v $JEKYLL_VERSION; fi + - if [ "$TWBS_TEST" = validate-html ]; then ./test-infra/s3_cache.py download rubygems pseudo_Gemfile.lock $GEMDIR || time gem install -N jekyll -v $JEKYLL_VERSION; fi after_script: - if [ "$TWBS_TEST" = core ]; then ./test-infra/s3_cache.py upload 'npm packages' test-infra/npm-shrinkwrap.canonical.json ./node_modules; fi - - if [ "$TWBS_TEST" = validate-html ]; then ./test-infra/s3_cache.py upload rubygems pseudo_Gemfile.lock $(rvm gemdir); fi + - if [ "$TWBS_TEST" = validate-html ]; then ./test-infra/s3_cache.py upload rubygems pseudo_Gemfile.lock $GEMDIR; fi env: global: - JEKYLL_VERSION: 1.5.0 |
