Blame view

vendor/bower-asset/yii2-pjax/script/test 228 Bytes
8ec727c1   曹明   初始化代码提交
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/"