项目原始demo,不改动
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

19 lines
559 B

  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