Awesome! Nice work. Thanks for finding a solution.
I found this forum topic on how to change phantomjs to 2.1.1
Circle CI has 1.9 installed by default, and they will upgrade to 2.1 at some point.
Here is how you can do it.
pre:
- sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
check out these articles for more.
It would be nice to have PhantomJS 2.1.1 installed and available in some form, so we do not have to install it manually.
The docs would indicate that following is more than sufficient for running 2.0
The below is using the Travis distribution which is a temporary build TravisCI created to support phantom on linux machines.
machine:
node:
version: 4.1.1
pre:
- curl -k -L -o phantomjs.tar.bz2 https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
- tar -jxf phantomjs.tar.bz2
But this leads to 1.9.8 still being used. I’ve tried various means of extracting it into a specif…