diff options
Diffstat (limited to 'before_script.sh')
-rwxr-xr-x | before_script.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/before_script.sh b/before_script.sh index bde2c4e..5c2cce8 100755 --- a/before_script.sh +++ b/before_script.sh @@ -1,8 +1,12 @@ #!/usr/bin/env bash +WKHTMLTOX_FOLDER="`pwd`/wkhtmltox_folder" +echo '## Installing dependencies' sudo apt-get install -y openssl build-essential xorg libssl-dev -wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2 -tar xvjf wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2 -sudo chown root:root wkhtmltopdf-amd64 -sudo mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf -export WKHTMLTOPDF_CMD=/usr/bin/wkhtmltopdf +echo '## Downloading wkhtmltopdf 0.12.0' +wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.0/wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz +mkdir -p $WKHTMLTOX_FOLDER +echo "## Extracting wkhtmltox into $WKHTMLTOX_FOLDER" +tar xvJf wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz -C $WKHTMLTOX_FOLDER +export WKHTMLTOPDF_CMD=$WKHTMLTOX_FOLDER/wkhtmltox/bin/wkhtmltopdf + |