Permalink
Browse files

Improve testing requirements

  • Loading branch information...
1 parent 176c699 commit b83111c30cb6300d9d8e49c07e3c9ba1d4848ad7 @dcramer dcramer committed May 30, 2012
Showing with 21 additions and 3 deletions.
  1. +19 −2 .travis.yml
  2. +1 −1 runtests.py
  3. +1 −0 setup.py
View
21 .travis.yml
@@ -2,5 +2,22 @@ language: python
python:
- "2.6"
- "2.7"
-install: python setup.py install
-script: python setup.py test
+ - "pypy"
+env:
+ - DJANGO=1.2.7
+ - DJANGO=1.3.1
+install:
+ - sudo apt-get install libevent-dev
+ - sudo pip install Django==$DJANGO --use-mirrors
+ - sudo pip install pep8 --use-mirrors
+ - sudo pip install https://github.com/dcramer/pyflakes/tarball/master
+ - sudo pip install -e . --use-mirrors
+script:
+ - "sudo pep8 --ignore=E501,E225 mock_django"
+ - sudo pyflakes -x W mock_django
+ - sudo python setup.py test
+notifications:
+ irc:
+ channels: "irc.freenode.org#sentry"
+ on_success: change
+ on_failure: change
View
2 runtests.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
from django.conf import settings
-from nose.core import collector, run
+from nose.core import run
# Trick Django into thinking that we've configured a project, so importing
View
1 setup.py
@@ -19,6 +19,7 @@
url='http://github.com/dcramer/mock-django',
packages=find_packages(),
install_requires=[
+ 'Django>=1.2,<1.5',
'nose',
'unittest2',
'mock',

0 comments on commit b83111c

Please sign in to comment.