From 8daa137fb5f22a1f260c1bf27f65b28312b7b24a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 27 Aug 2017 22:30:09 +0100 Subject: [PATCH] Install wkhtmltopdf on CI --- .circleci/config.yml | 1 + .circleci/wkhtmltopdf.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100755 .circleci/wkhtmltopdf.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 3532e93..4f62016 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,6 +13,7 @@ jobs: - run: which rustfmt || cargo install rustfmt - run: apt update && apt install -y wget - run: make lib + - run: ./.circleci/wkhtmltopdf.sh - run: cargo fmt -- --write-mode=diff - run: make build - run: make release diff --git a/.circleci/wkhtmltopdf.sh b/.circleci/wkhtmltopdf.sh new file mode 100755 index 0000000..386ce9a --- /dev/null +++ b/.circleci/wkhtmltopdf.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# 'stolen' from https://github.com/JazzCore/python-pdfkit/blob/master/travis/before-script.sh + +set -e + +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 +chown root:root bin/wkhtmltopdf +cp -r * /usr/