.travis.yml 701 B

12345678910111213141516171819202122232425
  1. addons:
  2. chrome: stable
  3. language: node_js
  4. git:
  5. depth: 3
  6. node_js:
  7. - "6"
  8. - "8"
  9. install:
  10. - bundle install --deployment --jobs=3 --retry=3 --clean
  11. - npm install
  12. before_script:
  13. - google-chrome-stable --product-version
  14. script:
  15. - npm test || travis_terminate 1
  16. - if [[ "$TRAVIS_NODE_VERSION" = "8" ]]; then npm run check-broken-links; fi
  17. - if [[ "$TRAVIS_NODE_VERSION" = "8" && "$TRAVIS_EVENT_TYPE" = "push" && ! `git log --format=%B --no-merges -n 1 | grep '\[skip browser\]'` ]]; then npm run js-test-cloud; fi
  18. after_success:
  19. - if [[ "$TRAVIS_NODE_VERSION" = "8" ]]; then npm run coveralls; fi
  20. cache:
  21. directories:
  22. - node_modules
  23. - vendor/bundle
  24. notifications:
  25. email: false