Last active
August 19, 2018 08:26
-
-
Save flenter/58c10e14fae9159fcf70 to your computer and use it in GitHub Desktop.
Manually install phantomjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
box: ruby:2.2.3 | |
build: | |
steps: | |
# uncomment if you use box: ruby:2.2.3-slim | |
# - script: | |
# name: install deps | |
# code: | | |
# apt-get update | |
# apt-get install -y wget libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev build-essential chrpath libssl-dev libxft-dev | |
- script: | |
name: install phantomjs 1.9.8 | |
code: | | |
cd /tmp | |
export PHANTOM_JS="phantomjs-1.9.8-linux-x86_64" | |
wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2 | |
tar xvjf $PHANTOM_JS.tar.bz2 | |
mv $PHANTOM_JS /usr/local/share | |
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin | |
# checking if phantomjs works: | |
phantomjs --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment