sudo: false

cache:
  directories:
    - node_modules

services:
  - mongodb

node_js:
  - "8"

before_script:
  - npm prune
  - mongo test --eval 'db.createUser({user:"admin",pwd:"admin",roles:["readWrite"]});'
  - npm run build
  
notifications:
  disabled: true

install:
  - npm install -g codecov
  - npm install

branches:
  except:
    - /^v\d+\.\d+\.\d+$/
    
script:
  - npm test
  - codecov

sudo: false

cache:
  directories:
    - node_modules

services:
  - mongodb

node_js:
  - "8"
  - "9"

before_script:
  - npm prune
  - mongo test --eval 'db.createUser({user:"admin",pwd:"admin",roles:["readWrite"]});'
  - npm run build
  
notifications:
  disabled: true

install:
  - npm install -g codecov
  - npm install

branches:
  except:
    - /^v\d+\.\d+\.\d+$/
    
script:
  - npm test
  - codecov

Add Node 9 to test builds
Add Node 9 to test builds
