msimerson/log-ship-elastic-postfix

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
node_js:
    - "6"
    - "8"

os:
    - linux
#   - osx

matrix:
    allow_failures:
        - os: osx
#       - node_js: iojs
    fast_finish: true

addons:
  apt:
    sources:
      # - elasticsearch-2.x
    packages:
      elasticsearch

services:
    - redis-server
    - elasticsearch

# wait for elasticsearch to start up
before_script:
    - chmod -w ./test/spool/nowrite
    - sleep 12

script:
    - npm run lint
    - npm test

after_success:
    - npm install istanbul codecov
    - NODE_ENV=cov ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec
    - ./node_modules/.bin/codecov

sudo: false