runner.sh 304 B

123456789
  1. #!/usr/bin/env bash
  2. NODE=/usr/local/bin/node
  3. PHANTOMJS=./node_modules/.bin/phantomjs
  4. SERVER_PORT=${1:-54545}
  5. echo "Starting test server at http://localhost:$SERVER_PORT"
  6. $NODE server.js "$SERVER_PORT" > /dev/null 2>&1 &
  7. $PHANTOMJS ./test/env/runner.js "http://localhost:$SERVER_PORT/test" 2> /dev/null