language: node_js
node_js:
  - "0.12.9"
services:
  - mongodb
before_install:
  - "until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done"
  - "mongo cobalt --eval 'db.adminCommand( { setParameter: true, textSearchEnabled: true})'"
install:
  - npm install
script:
  - npm test

language: node_js

node_js:
  - "4.2"

services:
  - mongodb

install:
  - npm install

before_script:
  - wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.0.tgz -O /tmp/mongodb.tgz
  - tar -xvf /tmp/mongodb.tgz
  - mkdir /tmp/data
  - ${PWD}/mongodb-linux-x86_64-3.2.0/bin/mongod --dbpath /tmp/data --bind_ip 127.0.0.1 --auth &> /dev/null &
  - until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done

script:
  - npm test

sudo: false

Use MongoDB 3.2.0 and force container-based workers for TravisCI
Use MongoDB 3.2.0 and force container-based workers for TravisCI
