Override the way gems are installed on Travis

It seems that Travis has made a change where instead of installing gems
globally they are installed to `vendor/gems`. This happens because
all of our Appraisal Gemfiles have associated lockfiles that are present
in the repo and Travis picks up on this and choose to run `bundle
with `--deployment`. This breaks our acceptance tests as they assume
that gems are installed globally.

To get around this we need to define our own `install` command.

(cherry picked from commit 309d1ff5aa)
This commit is contained in:
Elliot Winkler 2017-11-09 00:54:03 -06:00 committed by Matt Jankowski
parent 86fab891b5
commit a126b56a39
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ language: ruby
sudo: false
cache: bundler
script: "bundle exec rake"
install: "bundle install --jobs=3 --retry=3"
env:
- DATABASE_ADAPTER=sqlite3