aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattack108 <matt.lenc@gmail.com>2013-01-15 17:36:53 +0000
committermattack108 <matt.lenc@gmail.com>2013-01-15 17:36:53 +0000
commitd4a938c08539264add40126ff5c8ab673a8f78c1 (patch)
tree63aa44c7b3266f569e05ea65ac5dab4e2bba612c
parentcceabb0f893b67ff8924e7939ab1675235f88dca (diff)
downloaddjango-wkhtmltopdf-d4a938c08539264add40126ff5c8ab673a8f78c1.tar.gz
django-wkhtmltopdf-d4a938c08539264add40126ff5c8ab673a8f78c1.tar.bz2
django-wkhtmltopdf-d4a938c08539264add40126ff5c8ab673a8f78c1.zip
Update travis with before_script.sh which install wkhtmltopdf for Travis
-rw-r--r--.travis.yml13
-rw-r--r--before_script.sh8
2 files changed, 16 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 1dbd10d..cb3ffca 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,10 +1,13 @@
language: python
python:
- - 2.6
- - 2.7
-script: make test
-notifications:
- email: false
+ - "2.6"
+ - "2.7"
+before_script:
+ - "./before_script.sh"
install:
- pip install -r wkhtmltopdf/tests/test_requirements.txt
- pip install .
+script:
+ - make test
+notifications:
+ email: false
diff --git a/before_script.sh b/before_script.sh
new file mode 100644
index 0000000..ed0b6b4
--- /dev/null
+++ b/before_script.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+sudo aptitude install -y openssl build-essential xorg libssl-dev
+wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2
+tar xvjf wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2
+sudo chown root:root wkhtmltopdf-i386
+sudo mv wkhtmltopdf-i386 /usr/bin/wkhtmltopdf
+export WKHTMLTOPDF=/usr/bin/wkhtmltopdf