From b2fdfb78050c55eb722aac390a036823457b846b Mon Sep 17 00:00:00 2001 From: medmunds Date: Sat, 24 Nov 2012 11:37:49 -0800 Subject: [PATCH] Configure travis-ci.org tests Test Django 1.2 and 1.3; Python 2.6 and 2.7 Don't bother testing Python 2.5 -- it requires an older version of requests (that doesn't depend on json). Don't bother testing Django 1.2 -- it requires changes to ``assertRaises`` in the test cases (because the context-manager version of assertRaises is part of unittest2, which appears in Django 1.3+ or Python 2.7+). Don't bother testing Django 1.5 (yet). --- .travis.yml | 11 +++++++++++ README.rst | 12 +++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..62ea652 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: python +python: + - "2.6" + - "2.7" +env: + - DJANGO_VERSION=1.3 + - DJANGO_VERSION=1.4 +install: + - pip install -q Django==$DJANGO_VERSION + - pip install . --use-mirrors +script: python setup.py test diff --git a/README.rst b/README.rst index 0ff95e7..5a4aa83 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,10 @@ Djrill, for Mandrill ==================== -Djrill is an email backend and new message class for Django users that want to take advantage of the Mandrill_ transactional +.. image:: https://travis-ci.org/brack3t/Djrill.png + :target: https://secure.travis-ci.org/brack3t/Djrill + +Djrill is an email backend and new message class for Django users that want to take advantage of the Mandrill_ transactional email service from MailChimp_. An optional Django admin interface is included. The admin interface allows you to: @@ -110,6 +113,13 @@ extra headers are silently discarded. Testing ------- +Djrill is tested against Django 1.3 and 1.4 on Python 2.6 and 2.7. +(It may also work with Django 1.2 and Python 2.5, if you use an older +version of requests compatible with that code.) + +.. image:: https://travis-ci.org/brack3t/Djrill.png + :target: https://secure.travis-ci.org/brack3t/Djrill + The included tests verify that Djrill constructs the expected Mandrill API calls, without actually calling Mandrill or sending any email. So the tests don't require a Mandrill API key, but they *do* require mock_