aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@jamesturnbull.org>2013-01-17 03:08:34 -0800
committerJames Turnbull <james@jamesturnbull.org>2013-01-17 03:08:34 -0800
commit5716bc8be3b4599aad4c7b62759ce9dce9ed2f7a (patch)
tree68627af4697d7fe07f916c6bde9f5b4eb3259be3
parenta03c1e14b0da1999590442719c42293a88ab9e3b (diff)
parentd31a7cde37bf7a9a718dba1f929b5b5e89409724 (diff)
downloaddjango-wkhtmltopdf-5716bc8be3b4599aad4c7b62759ce9dce9ed2f7a.tar.gz
django-wkhtmltopdf-5716bc8be3b4599aad4c7b62759ce9dce9ed2f7a.tar.bz2
django-wkhtmltopdf-5716bc8be3b4599aad4c7b62759ce9dce9ed2f7a.zip
Merge pull request #29 from incuna/travis-setup
Add travis for testing
-rw-r--r--.travis.yml13
-rw-r--r--README.rst3
-rwxr-xr-xbefore_script.sh8
-rw-r--r--wkhtmltopdf/tests/test_requirements.txt1
4 files changed, 25 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..cb3ffca
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,13 @@
+language: python
+python:
+ - "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/README.rst b/README.rst
index 925f543..26cf36d 100644
--- a/README.rst
+++ b/README.rst
@@ -1,6 +1,9 @@
django-wkhtmltopdf
==================
+.. image:: https://travis-ci.org/incuna/django-wkhtmltopdf.png
+ :target: https://travis-ci.org/incuna/django-wkhtmltopdf
+
Converts html to PDF
--------------------
diff --git a/before_script.sh b/before_script.sh
new file mode 100755
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
diff --git a/wkhtmltopdf/tests/test_requirements.txt b/wkhtmltopdf/tests/test_requirements.txt
new file mode 100644
index 0000000..3999bef
--- /dev/null
+++ b/wkhtmltopdf/tests/test_requirements.txt
@@ -0,0 +1 @@
+Django==1.4.2