.travis.yml 605 B

123456789101112131415161718192021222324252627282930313233
  1. language: node_js
  2. notifications:
  3. email: false
  4. services:
  5. - docker
  6. node_js:
  7. - 12
  8. - 10
  9. # Trigger a push build on master and greenkeeper branches + PRs build on every branches
  10. # Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
  11. branches:
  12. only:
  13. - master
  14. - /^greenkeeper.*$/
  15. # Retry install on fail to avoid failing a build on network/disk/external errors
  16. install:
  17. - travis_retry npm install
  18. script:
  19. - npm run test
  20. jobs:
  21. include:
  22. - stage: release
  23. if: branch = master
  24. node_js: lts/*
  25. script:
  26. - npm run semantic-release