Skip to content

Instantly share code, notes, and snippets.

@roidrage
Created July 9, 2015 09:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roidrage/14e45c24b5a134e1f165 to your computer and use it in GitHub Desktop.
Save roidrage/14e45c24b5a134e1f165 to your computer and use it in GitHub Desktop.
MongoDB on Travis CI's container setup
sudo: false
env:
global:
- MONGODB_VERSION=2.6.10
install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-$MONGODB_VERSION.tgz
- tar xfz mongodb-linux-x86_64-$MONGODB_VERSION.tgz
- export PATH=`pwd`/mongodb-linux-x86_64-$MONGODB_VERSION/bin:$PATH
- mkdir -p data/db
- mongod --dbpath=data/db &
- sleep 3
script:
- mongo --eval 'db.hostInfo()'
@nikitasenko
Copy link

env:

  • CXX=g++-4.8
    addons:
    apt:
    sources:
    • ubuntu-toolchain-r-test
    • mongodb-upstart
    • mongodb-3.0-precise
      packages:
    • g++-4.8
    • mongodb-org-server
    • mongodb-org-shell
      services: mongodb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment