init
This commit is contained in:
12
vendor/bower-asset/yii2-pjax/script/bootstrap
vendored
Normal file
12
vendor/bower-asset/yii2-pjax/script/bootstrap
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
[ -n "$CI" ] || npm install
|
||||
bundle install
|
||||
|
||||
if phantom_version="$(phantomjs --version)"; then
|
||||
echo "PhantomJS $phantom_version"
|
||||
else
|
||||
echo "Warning: script/test will not be able to run, but you can still start" >&2
|
||||
echo "script/server and open the test suite in your browser." >&2
|
||||
fi
|
||||
4
vendor/bower-asset/yii2-pjax/script/server
vendored
Normal file
4
vendor/bower-asset/yii2-pjax/script/server
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
exec bundle exec ruby ./test/app.rb "$@"
|
||||
19
vendor/bower-asset/yii2-pjax/script/test
vendored
Normal file
19
vendor/bower-asset/yii2-pjax/script/test
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
./node_modules/.bin/eslint *.js
|
||||
|
||||
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.js \
|
||||
"http://localhost:$port/?jquery=3.2" \
|
||||
"http://localhost:$port/?jquery=2.2" \
|
||||
"http://localhost:$port/?jquery=1.12"
|
||||
Reference in New Issue
Block a user