You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.travis.yml 396B

123456789101112131415161718192021
  1. language: node_js
  2. node_js:
  3. - "9"
  4. # Cache node_modules between builds
  5. cache:
  6. directories:
  7. - "node_modules"
  8. # Build website
  9. script:
  10. - npm test
  11. - npm run build
  12. # Deploy master to gh-pages branch
  13. deploy:
  14. provider: pages
  15. skip-cleanup: true
  16. github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
  17. local-dir: build
  18. target-branch: gh-pages
  19. verbose: true
  20. on:
  21. branch: master