sudo: false language: node_js node_js: lts/* cache: directories: - ~/.npm # Trigger a push build on master and greenkeeper branches + PRs build on every branches # Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) branches: only: - master - next - /^greenkeeper.*$/ stages: - test - name: release if: branch = master AND type IN (push) jobs: include: - stage: test node_js: 6 - node_js: 8 - node_js: 10 - stage: release script: npm run semantic-release - script: npm run update-docs