X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fbehat%2Fmink-selenium2-driver%2Fbin%2Frun-phantomjs.sh;fp=vendor%2Fbehat%2Fmink-selenium2-driver%2Fbin%2Frun-phantomjs.sh;h=d59742799cff8a9ffb3d8b923400121c50dee14a;hp=0000000000000000000000000000000000000000;hb=1270d9129ce8f27c9b28b10518e32132c58e0aca;hpb=c27c0f0cdaa3f354b1fe54a56ae7e854be6e3f68 diff --git a/vendor/behat/mink-selenium2-driver/bin/run-phantomjs.sh b/vendor/behat/mink-selenium2-driver/bin/run-phantomjs.sh new file mode 100644 index 000000000..d59742799 --- /dev/null +++ b/vendor/behat/mink-selenium2-driver/bin/run-phantomjs.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh +set -e + +if [ "2" = "$PHANTOM_VERSION" ]; then + mkdir travis-phantomjs + wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 + tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs + export PATH=$PWD/travis-phantomjs:$PATH +fi + +phantomjs --version +echo ' Running PhantomJS' +phantomjs --webdriver=4444 > /tmp/webdriver_output.txt &