Blame view

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