.travis.yml 454 B

12345678910111213141516171819202122232425
  1. sudo: required
  2. language: node_js
  3. node_js:
  4. #- "node"
  5. - "12"
  6. - "11"
  7. - "10"
  8. - "8"
  9. # node 6 is not compatible with tfjs-node
  10. # - "6"
  11. services:
  12. - xvfb
  13. env:
  14. global:
  15. - BACKEND_CPU=true EXCLUDE_UNCOMPRESSED=true
  16. matrix:
  17. - ENV=browser
  18. - ENV=node
  19. addons:
  20. chrome: stable
  21. install: npm install
  22. script:
  23. - if [ $ENV == 'browser' ]; then npm run test-browser; fi
  24. - if [ $ENV == 'node' ]; then npm run test-node; fi
  25. - npm run build