Skip to content

Commit

Permalink
hooked up tests to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Aug 1, 2014
1 parent cf0ec62 commit 2304c1f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Expand Up @@ -3,9 +3,22 @@ language: python
python:
- 2.7

env:
- DJANGO=1.4
- DJANGO=1.5
- DJANGO=1.6

install:
- pip install flake8
- pip install -q Django==$DJANGO
- pip install -q django-nose
- pip install -q coverage
- pip install -q python-coveralls
- pip install -e .

script:
- flake8 .
- coverage run runtests.py

after_script:
- coveralls
29 changes: 29 additions & 0 deletions runtests.py
@@ -0,0 +1,29 @@
import sys

from django.conf import settings


settings.configure(
DATABASES={
"default": {
"ENGINE": "django.db.backends.sqlite3",
}
},
INSTALLED_APPS=[
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.sites",
"brabeion",
"brabeion.tests",
],
)


from django_nose import NoseTestSuiteRunner

test_runner = NoseTestSuiteRunner(verbosity=1)
failures = test_runner.run_tests(["brabeion"])

if failures:
sys.exit(failures)

0 comments on commit 2304c1f

Please sign in to comment.