Created
          July 9, 2015 09:07 
        
      - 
      
- 
        Save roidrage/14e45c24b5a134e1f165 to your computer and use it in GitHub Desktop. 
    MongoDB on Travis CI's container setup
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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()' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
env:
addons:
apt:
sources:
packages:
services: mongodb