1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00
teampoltergeist--poltergeist/ci/install_phantomjs
2012-01-11 23:19:12 +00:00

18 lines
462 B
Bash
Executable file

#!/bin/bash
wget http://phantomjs.googlecode.com/files/phantomjs-1.4.1-linux-x86-dynamic.tar.gz
tar xzf phantomjs-*.tar.gz
# mkdir ~/bin
# ln -s `pwd`/phantomjs/bin/phantomjs ~/bin/phantomjs
Xvfb :0 2>/dev/null &
version=`phantomjs/bin/phantomjs --version`
if [ "$?" = "0" ]; then
echo "PhantomJS $version installed successfully"
else
echo "Something went wrong with PhantomJS setup"
echo "Output: #{$version}"
ls -la ~/bin/phantomjs
env
exit 1
fi