Skip to content

Instantly share code, notes, and snippets.

@hubertlepicki
Created May 12, 2015 06:32
Show Gist options
  • 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"
@mlocher
Copy link

mlocher commented May 12, 2015

Ahoy, could you make the gist private for the time being, it's not really released yet ;)

And you could use https://gist.github.com/mlocher/f0f731dfa93c82d0fa86 directly via

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

as well. The script won't change any time soon and I will make sure it keeps working! (Though I fully understand that including external scripts not under your control is something you might not want to do!)

Updated the links as well as the code snippet as I deleted the original 😢

@dbernazal
Copy link

Hey Marko, do you still have this gist available?

@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