language: node_js
node_js:
  - "4.8"
  - "6.10"
  - "7.6"
services:
  - mongodb
cache:
  directories:
  - node_modules
git:
  depth: 3
before_script:
  - cp .env.example .env
branches:
  only:
    - master
    - develop
    - patch
script:
  - yarn test:check-coverage
after_script:
  - yarn report-coverage

language: node_js
node_js:
  - "4.8"
  - "6.10"
  - "7.6"
services:
  - mongodb
cache:
  directories:
  - node_modules
git:
  depth: 3
before_script:
  - cp .env.example .env
branches:
  only:
    - master
    - develop
    - patch
script:
  - yarn test:check-coverage
after_script:
  - yarn report-coverage
addons:
  apt:
    sources:
      - mongodb-upstart
      - sourceline: 'deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.4 multiverse'
    packages:
      - mongodb-org-server
      - mongodb-org-shell

Use MongoDB 3.4 with Travis.
Use MongoDB 3.4 with Travis.
