sudo: false
language: node_js
cache:
  directories:
    - node_modules
notifications:
  email: false
  slack: snyk:5hknLE8muATMpE75TgeVFZzz
node_js:
  - 6
  - 8
install:
  - npm install
script:
  - npm test
jobs:
  include:
    - stage: Release
      node_js: "8"
      script:
      - test "${TRAVIS_PULL_REQUEST}" != "false" || npx semantic-release
branches:
  only:
    - "master"
