.travis.yml 568 B

123456789101112131415161718192021222324252627282930
  1. language: node_js
  2. node_js:
  3. - "4"
  4. - "5"
  5. env:
  6. -
  7. - BROWSER=1
  8. - BROWSER=1 NOCOMPRESS=1
  9. script:
  10. - |
  11. export BUILD_PARAMS=""
  12. if [ "x$BROWSER" = "x1" ]; then
  13. export BUILD_PARAMS="$BUILD_PARAMS -t browser"
  14. else
  15. export BUILD_PARAMS="$BUILD_PARAMS -t node"
  16. fi
  17. if [ "x$NOCOMPRESS" = "x1" ]; then
  18. export BUILD_PARAMS="$BUILD_PARAMS -n"
  19. fi
  20. node tools/build.js $BUILD_PARAMS
  21. if [ "x$BROWSER" = "x1" ]; then
  22. npm run test-browser
  23. else
  24. npm run test
  25. fi
  26. sudo: false # Use container-based architecture