Blame view

vendor/bower-asset/yii2-pjax/script/test 228 Bytes
2e86c939   xu   “首次提交”
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
set -e

port=3999
script/server -p "$port" &>/dev/null &
pid=$!

trap "kill $pid" EXIT INT

while ! lsof -i :$port >/dev/null; do
  sleep .05
done

phantomjs ./test/run-qunit.coffee "http://localhost:$port/"