Install wkhtmltopdf on CI
This commit is contained in:
parent
4adbe45409
commit
8daa137fb5
2 changed files with 13 additions and 0 deletions
|
@ -13,6 +13,7 @@ jobs:
|
||||||
- run: which rustfmt || cargo install rustfmt
|
- run: which rustfmt || cargo install rustfmt
|
||||||
- run: apt update && apt install -y wget
|
- run: apt update && apt install -y wget
|
||||||
- run: make lib
|
- run: make lib
|
||||||
|
- run: ./.circleci/wkhtmltopdf.sh
|
||||||
- run: cargo fmt -- --write-mode=diff
|
- run: cargo fmt -- --write-mode=diff
|
||||||
- run: make build
|
- run: make build
|
||||||
- run: make release
|
- run: make release
|
||||||
|
|
12
.circleci/wkhtmltopdf.sh
Executable file
12
.circleci/wkhtmltopdf.sh
Executable 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/
|
Reference in a new issue