Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: cache rubocop re-run optimization and mongodb install file #1326

Merged
merged 8 commits into from Jul 26, 2018
16 changes: 10 additions & 6 deletions .travis.yml
Expand Up @@ -17,20 +17,24 @@ env:

sudo: false

cache: bundler
cache:
bundler: true
directories:
- /home/travis/.cache/rubocop_cache
- /home/travis/mongodb-install

before_install:
- gem update --system

before_script:
- wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
- test -f mongodb-install/mongodb-linux-x86_64-${MONGODB}.tgz || wget --directory-prefix=mongodb-install/ https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-install/mongodb-linux-x86_64-${MONGODB}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
- mkdir /tmp/mongodb-data
- >
${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod
--dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
--logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log
--dbpath /tmp/mongodb-data
--logpath /tmp/mongodb.log
--fork
- until nc -z localhost 27017; do echo "waiting for mongodb ${MONGODB}"; sleep 1; done
- bundle exec rake errbit:bootstrap
Expand Down