Update to Drupal 8.0.0-rc3. For more information, see https://www.drupal.org/node/2608078
This commit is contained in:
parent
6419a031d7
commit
4afb23bbd3
762 changed files with 20080 additions and 6368 deletions
40
vendor/jcalderonzumba/mink-phantomjs-driver/bin/run-tests.sh
vendored
Normal file
40
vendor/jcalderonzumba/mink-phantomjs-driver/bin/run-tests.sh
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
start_browser_api(){
|
||||
CURRENT_DIR=$(pwd)
|
||||
LOCAL_PHANTOMJS="${CURRENT_DIR}/bin/phantomjs"
|
||||
if [ -f ${LOCAL_PHANTOMJS} ]; then
|
||||
${LOCAL_PHANTOMJS} --ssl-protocol=any --ignore-ssl-errors=true vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768 2>&1 &
|
||||
else
|
||||
phantomjs --ssl-protocol=any --ignore-ssl-errors=true vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768 2>&1 >> /dev/null &
|
||||
fi
|
||||
sleep 2
|
||||
}
|
||||
|
||||
stop_services(){
|
||||
ps axo pid,command | grep phantomjs | grep -v grep | awk '{print $1}' | xargs -I {} kill {}
|
||||
ps axo pid,command | grep php | grep -v grep | grep -v phpstorm | awk '{print $1}' | xargs -I {} kill {}
|
||||
sleep 2
|
||||
}
|
||||
|
||||
star_local_browser(){
|
||||
CURRENT_DIR=$(pwd)
|
||||
cd ${CURRENT_DIR}/vendor/behat/mink/driver-testsuite/web-fixtures
|
||||
if [ "$TRAVIS" = true ]; then
|
||||
echo "Starting webserver fox fixtures...."
|
||||
~/.phpenv/versions/5.6/bin/php -S 127.0.0.1:6789 > /dev/null 2>&1 &
|
||||
else
|
||||
php -S 127.0.0.1:6789 2>&1 >> /dev/null &
|
||||
fi
|
||||
sleep 2
|
||||
}
|
||||
|
||||
mkdir -p /tmp/jcalderonzumba/phantomjs
|
||||
stop_services
|
||||
start_browser_api
|
||||
star_local_browser
|
||||
cd ${CURRENT_DIR}
|
||||
${CURRENT_DIR}/bin/phpunit --configuration integration_tests.xml
|
||||
stop_services
|
||||
start_browser_api
|
Reference in a new issue