Skip to content

Instantly share code, notes, and snippets.

@hubertlepicki
Created May 12, 2015 06:32
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save hubertlepicki/5cda0fe151cb4f759b7e to your computer and use it in GitHub Desktop.
Save hubertlepicki/5cda0fe151cb4f759b7e to your computer and use it in GitHub Desktop.
PhantomJS 2.0.1 on codeship
# I am pasting that into setup steps
# binary provided by the amazing Codeship.io support
PHANTOMJS_URL="https://s3.amazonaws.com/codeship.io/checkbot/binaries/phantomjs_2.0.1"
set -e
rm -rf ~/.phantomjs
wget --continue "${PHANTOMJS_URL}" -O "${HOME}/cache/phantomjs"
ln -s "${HOME}/cache/phantomjs" "${HOME}/bin/"
chmod +x "${HOME}/bin/phantomjs"
@davidstosik
Copy link

It looks like @mlocher deleted his gist. We started using it on our Codeship setup a few days ago hoping that, as promised, it would keep working...
It would be good to know if PhantomJS was updated in Codeship and that script is now useless, or if we must find a solution by ourselves...

@mlocher
Copy link

mlocher commented Jun 17, 2015

Ups, I'm very sorry, I didn't realise this was in use by somebody else. I recreated the gist and updated the link in my comment above, see https://gist.github.com/mlocher/f0f731dfa93c82d0fa86

To include it in your builds use

\curl -sSL https://gist.githubusercontent.com/mlocher/f0f731dfa93c82d0fa86/raw/phantomjs2.sh | bash -s

I promise I won't delete it again ;)

@davidstosik
Copy link

Thanks! 👍

@dbernazal
Copy link

Thanks!

@unremarkable008
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment