4 if [ "2" = "$PHANTOM_VERSION" ]; then
6 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
7 tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
8 export PATH=$PWD/travis-phantomjs:$PATH
12 echo ' Running PhantomJS'
13 phantomjs --webdriver=4444 > /tmp/webdriver_output.txt &