diff --git a/circle.yml b/circle.yml index 64638e0..f321653 100644 --- a/circle.yml +++ b/circle.yml @@ -6,6 +6,10 @@ machine: dependencies: + pre: + - sudo apt install pandoc pandoc-citeproc + - bash scripts/before_script.sh + post: - pip install -r dev-requirements.txt diff --git a/scripts/before_script.sh b/scripts/before_script.sh new file mode 100644 index 0000000..1d1adaa --- /dev/null +++ b/scripts/before_script.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 + +sudo apt-get install -y openssl build-essential xorg libssl-dev +wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz +tar -xJf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz +cd wkhtmltox +sudo chown root:root bin/wkhtmltopdf +sudo cp -r * /usr/