Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-08-09 21:25:11 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-08-13 08:57:40 +0300
commite6173e056756cb65c60c16b02e3a36f84222b6e3 (patch)
tree4d1ccf7d46c3e280dc5a3bf5479b447309dfc223 /scripts
parentd18fe2094b42ccf2ee23b01c4cdcf58dc42aaf03 (diff)
Install latest stable phantomjs
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prepare_build.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh
index 9c5a9713189..bfca5d76391 100755
--- a/scripts/prepare_build.sh
+++ b/scripts/prepare_build.sh
@@ -20,10 +20,11 @@ if [ -f /.dockerenv ] || [ -f ./dockerinit ]; then
# Install phantomjs package
pushd vendor/apt
- if [ ! -e "$PHANTOMJS_DEB" ]; then
- wget -q "http://ftp.us.debian.org/debian/pool/main/p/phantomjs/$PHANTOMJS_DEB"
+ PHANTOMJS_FILE="phantomjs-$PHANTOMJS_VERSION-linux-x86_64"
+ if [ ! -d "$PHANTOMJS_FILE" ]; then
+ curl -q "https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMJS_FILE.tar.bz2" | tar jx
fi
- dpkg -i "$PHANTOMJS_DEB"
+ cp "$PHANTOMJS_FILE/bin/phantomjs" "/usr/bin/"
popd
# Try to install packages