Merge pull request #2 from RealOrangeOne/more-testing

More testing
This commit is contained in:
Jake Howard 2017-04-27 19:51:04 +01:00 committed by GitHub
commit 34c3620800
2 changed files with 16 additions and 0 deletions

View file

@ -6,6 +6,10 @@ machine:
dependencies: dependencies:
pre:
- sudo apt install pandoc pandoc-citeproc
- bash scripts/before_script.sh
post: post:
- pip install -r dev-requirements.txt - pip install -r dev-requirements.txt

12
scripts/before_script.sh Normal 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
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/