2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
## File: phantomjs.sh
|
|
|
|
|
## Desc: Installs PhantomJS
|
|
|
|
|
################################################################################
|
|
|
|
|
|
2021-04-02 18:47:50 +03:00
|
|
|
# Source the helpers for use with the script
|
|
|
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
|
|
2019-12-13 09:48:00 -05:00
|
|
|
# Install PhantomJS
|
|
|
|
|
apt-get install -y chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
|
2023-11-17 11:36:37 +01:00
|
|
|
phantom_js=phantomjs-2.1.1-linux-x86_64
|
|
|
|
|
download_with_retries https://bitbucket.org/ariya/phantomjs/downloads/$phantom_js.tar.bz2 "/tmp"
|
|
|
|
|
phantom_js_hash="86dd9a4bf4aee45f1a84c9f61cf1947c1d6dce9b9e8d2a907105da7852460d2f"
|
|
|
|
|
use_checksum_comparison "/tmp/${phantom_js}.tar.bz2" "${phantom_js_hash}"
|
|
|
|
|
tar xjf /tmp/$phantom_js.tar.bz2 -C /usr/local/share
|
|
|
|
|
ln -sf /usr/local/share/$phantom_js/bin/phantomjs /usr/local/bin
|
2019-12-13 09:48:00 -05:00
|
|
|
|
2020-12-25 18:03:35 +03:00
|
|
|
invoke_tests "Tools" "Phantomjs"
|