Added manage.py for testing purposes
This commit is contained in:
parent
3785b369f2
commit
3667171d72
|
@ -15,5 +15,5 @@ branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
script: tests/test.sh
|
script: ./test.sh
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
|
||||||
|
|
||||||
|
from django.core.management import execute_from_command_line
|
||||||
|
|
||||||
|
execute_from_command_line(sys.argv)
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
python manage.py test provider oauth2
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
PYTHONPATH=$PWD/../:$PYTHONPATH
|
|
||||||
|
|
||||||
django-admin.py test provider oauth2 --settings tests.settings
|
|
2
tox.ini
2
tox.ini
|
@ -7,7 +7,7 @@ setenv =
|
||||||
PYTHONPATH = {toxinidir}
|
PYTHONPATH = {toxinidir}
|
||||||
commands =
|
commands =
|
||||||
pip install -q -r requirements.txt --use-mirrors
|
pip install -q -r requirements.txt --use-mirrors
|
||||||
{toxinidir}/tests/test.sh
|
{toxinidir}/test.sh
|
||||||
deps =
|
deps =
|
||||||
|
|
||||||
[testenv:py2.7-django1.5]
|
[testenv:py2.7-django1.5]
|
||||||
|
|
Loading…
Reference in New Issue