run-phantomjs.sh 498 B

12345678910111213
  1. #!/usr/bin/env sh
  2. set -e
  3. if [ "2" = "$PHANTOM_VERSION" ]; then
  4. mkdir travis-phantomjs
  5. 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
  6. tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
  7. export PATH=$PWD/travis-phantomjs:$PATH
  8. fi
  9. phantomjs --version
  10. echo ' Running PhantomJS'
  11. phantomjs --webdriver=4444 > /tmp/webdriver_output.txt &