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

18 lines
415 B
Text
Raw Normal View History

#!/bin/bash
2012-01-09 23:27:25 +00:00
wget http://phantomjs.googlecode.com/files/phantomjs-1.4.1-linux-x86-dynamic.tar.gz
2012-01-10 00:25:16 +00:00
tar xzf phantomjs-*.tar.gz
2012-01-11 22:53:20 +00:00
mkdir ~/bin
2012-01-11 23:02:10 +00:00
ln -s `pwd`/phantomjs/bin/phantomjs ~/bin/phantomjs
2012-01-11 22:50:53 +00:00
Xvfb :0 2>/dev/null &
version=`phantomjs --version`
if [ "$?" = "0" ]; then
echo "PhantomJS $version installed successfully"
else
echo "Something went wrong with PhantomJS setup"
2012-01-11 22:59:36 +00:00
ls -la ~/bin/phantomjs
env
2012-01-11 22:50:53 +00:00
exit 1
fi