aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMatt Lenc <mattl@incuna.com>2014-06-18 15:45:15 +0100
committerMatt Lenc <mattl@incuna.com>2014-06-18 15:45:15 +0100
commit35f093603ecf6aa48b29d91ba4a6da1cb7109817 (patch)
treeba137ab21cd1b13e2120e375e62f7e2227f5d3c7 /.travis.yml
parent6cacfe5e012a3e9b95b53dede0ba997f5ed74880 (diff)
downloaddjango-wkhtmltopdf-35f093603ecf6aa48b29d91ba4a6da1cb7109817.tar.gz
django-wkhtmltopdf-35f093603ecf6aa48b29d91ba4a6da1cb7109817.tar.bz2
django-wkhtmltopdf-35f093603ecf6aa48b29d91ba4a6da1cb7109817.zip
Move the wkhtmltopdf install process to .travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index a7f43c2..dab05fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,8 @@ python:
- "3.3"
- "3.4"
env:
+ global:
+ - WKHTML_HOME=`pwd`/"_wkhtmltopdf"
- DJANGO=Django==1.4.13
- DJANGO=Django==1.5.8
- DJANGO=Django==1.6.5
@@ -14,8 +16,15 @@ matrix:
env: DJANGO=Django==1.4.13
- python: "3.4"
env: DJANGO=Django==1.4.13
-before_script:
- - "./before_script.sh"
+before_install:
+ - echo '## Installing dependencies'
+ - sudo apt-get install -y openssl build-essential xorg libssl-dev
+ - echo '## Downloading wkhtmltopdf 0.12.0'
+ - wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.0/wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz
+ - mkdir -p $WKHTML_HOME
+ - echo "## Extracting wkhtmltox into $WKHTML_HOME"
+ - tar xvJf wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz -C $WKHTML_HOME
+ - export WKHTMLTOPDF_CMD=$WKHTML_HOME/wkhtmltox/bin/wkhtmltopdf
install:
- pip install $DJANGO
- pip install -r test_requirements.txt