build.sh 559 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -e
  3. if [ "x${BROWSER}" = "x" ]; then
  4. npm run lint
  5. npm test
  6. elif [ "${TRAVIS_SECURE_ENV_VARS}" = "true" ]; then
  7. npm run test:bundle
  8. if [ "x${BROWSER_NAME}" = "x" ]; then
  9. ./node_modules/.bin/zuul tests/browser.js
  10. elif [ "x${BROWSER_PLATFORM}" = "x" ]; then
  11. ./node_modules/.bin/zuul --browser-name $BROWSER_NAME --browser-version $BROWSER_VERSION tests/browser.js
  12. else
  13. ./node_modules/.bin/zuul --browser-name $BROWSER_NAME --browser-version $BROWSER_VERSION --browser-platform "$BROWSER_PLATFORM" tests/browser.js
  14. fi
  15. else
  16. exit 1
  17. fi