test 355 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. set -e
  3. ./node_modules/.bin/eslint *.js
  4. port=3999
  5. script/server -p "$port" &>/dev/null &
  6. pid=$!
  7. trap "kill $pid" EXIT INT
  8. while ! lsof -i :$port >/dev/null; do
  9. sleep .05
  10. done
  11. phantomjs ./test/run-qunit.js \
  12. "http://localhost:$port/?jquery=3.2" \
  13. "http://localhost:$port/?jquery=2.2" \
  14. "http://localhost:$port/?jquery=1.12"