Skip to content

Commit

Permalink
Move runtests.py to repo root.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Antukh committed Jan 27, 2014
1 parent 5dcaf85 commit 1561ca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ before_script:
- curl https://raw.github.com/django/django/1.5.5/docs/ref/contrib/gis/install/create_template_postgis-debian.sh | sh
- createdb -T template_postgis django_hstore


# command to run tests, e.g. python setup.py test
script:
- coverage run --source django_hstore,django_hstore_tests setup.py test
- coverage run --source django_hstore runtests.py

after_success:
coveralls
4 changes: 3 additions & 1 deletion tests/runtests.py → runtests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
sys.path.insert(0, "..")
sys.path.insert(0, "tests")

if __name__ == "__main__":
from django.core.management import execute_from_command_line
Expand Down

0 comments on commit 1561ca9

Please sign in to comment.