[ubuntu] replace wget to download_with_retries helper (#3087)

This commit is contained in:
Aleksandr Chebotov
2021-04-02 18:47:50 +03:00
committed by GitHub
parent 0917a07677
commit be27ebfdb3
11 changed files with 32 additions and 18 deletions

View File

@@ -4,12 +4,14 @@
## Desc: Installs PhantomJS
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# Install PhantomJS
apt-get install -y chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
PHANTOM_JS=phantomjs-2.1.1-linux-x86_64
wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2
tar xjf $PHANTOM_JS.tar.bz2
mv $PHANTOM_JS /usr/local/share
download_with_retries https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2 "/tmp"
tar xjf /tmp/$PHANTOM_JS.tar.bz2 -C /usr/local/share
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
invoke_tests "Tools" "Phantomjs"