language: node_js
node_js:
  - '0.10'
services:
- elasticsearch
before_script:
  - mkdir testdb
  - mongod --port 27017 --dbpath testdb --replSet rs0 --oplogSize 20 --noprealloc --fork --smallfiles --logpath mongodb.log
  - sleep 3
  - mongo admin --eval 'printjson(rs.initiate());'
  - sleep 20
script: ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
deploy:
  provider: npm
  email: stephensebro@yahoo.com
  api_key:
    secure: GORhsjTrkg5UFhKbnCjPGtDHkbz7LH1x2brO6Q4npfimN9VQB7lzqpaTGYrUZsiODOE1/x7BIwc9tYVeQW4hZpdF2emf79FYw6sC3bMSdTmGwtyfhX8OHIC3MQISZ0EBBStriOURV0llPhyHF9uboI0I8HueoRSuAmgkuu/Hf8c=
  on:
    tags: true
    repo: agco-adm/elastic-harvest
    branch: develop

language: node_js
node_js:
  - '0.10'
services:
- elasticsearch
before_script:
  - mkdir testdb
  - mongod --port 27017 --dbpath testdb --replSet rs0 --oplogSize 20 --noprealloc --fork --smallfiles --logpath mongodb.log
  - sleep 3
  - mongo admin --eval 'printjson(rs.initiate());'
  - sleep 20
script: env ES_INDEX_WAIT_TIME=5000 ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
deploy:
  provider: npm
  email: stephensebro@yahoo.com
  api_key:
    secure: GORhsjTrkg5UFhKbnCjPGtDHkbz7LH1x2brO6Q4npfimN9VQB7lzqpaTGYrUZsiODOE1/x7BIwc9tYVeQW4hZpdF2emf79FYw6sC3bMSdTmGwtyfhX8OHIC3MQISZ0EBBStriOURV0llPhyHF9uboI0I8HueoRSuAmgkuu/Hf8c=
  on:
    tags: true
    repo: agco-adm/elastic-harvest
    branch: develop

Increase ElasticSearch index timeout for TravisCI.
Increase ElasticSearch index timeout for TravisCI.
