Install wkhtmltopdf on CI

This commit is contained in:
Jake Howard 2017-08-27 22:30:09 +01:00
parent 4adbe45409
commit 8daa137fb5
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 13 additions and 0 deletions

View file

@ -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

12
.circleci/wkhtmltopdf.sh Executable file
View file

@ -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/