gitlab-build-images/scripts/install-phantomjs
DJ Mountney ba27de2fd4 Add phantomjs2 images
We want to keep the old images so the current stable and patch releases continue to work.
2016-09-08 21:05:21 +02:00

11 lines
282 B
Bash
Executable file

#!/bin/bash
set -xeo pipefail
cd /tmp
PHANTOMJS_VERSION=${1:-1.9.8}
PHANTOMJS_FILE="phantomjs-$PHANTOMJS_VERSION-linux-x86_64"
curl -L "https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMJS_FILE.tar.bz2" | tar jx
cp "$PHANTOMJS_FILE/bin/phantomjs" "/usr/bin/"
rm -rf /tmp/*