This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf/scripts/before_script.sh

12 lines
405 B
Bash

#!/usr/bin/env bash
# 'stolen' from https://github.com/JazzCore/python-pdfkit/blob/master/travis/before-script.sh
set -e
sudo apt-get install -y openssl build-essential xorg libssl-dev
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xJf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cd wkhtmltox
sudo chown root:root bin/wkhtmltopdf
sudo cp -r * /usr/