Fixed pytest setup on travis
This commit is contained in:
parent
9ba75bb820
commit
7d8a7e7a9f
|
@ -31,6 +31,6 @@ script:
|
|||
- isort --check-only --recursive --diff .
|
||||
- flake8 --jobs=2 .
|
||||
- pep257 django_select2
|
||||
- coverage run --source=django_select2 py.test
|
||||
- coverage run --source=django_select2 -m py.test
|
||||
after_success:
|
||||
- coveralls
|
||||
|
|
3086
runtests.py
3086
runtests.py
File diff suppressed because it is too large
Load Diff
18
setup.py
18
setup.py
|
@ -22,23 +22,6 @@ URL = "https://github.com/applegrew/django-select2"
|
|||
VERSION = __import__(PACKAGE).__version__
|
||||
|
||||
|
||||
class PyTest(Command):
|
||||
user_options = []
|
||||
|
||||
def initialize_options(self):
|
||||
pass
|
||||
|
||||
def finalize_options(self):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
errno = subprocess.call([sys.executable, 'runtests.py'])
|
||||
raise SystemExit(errno)
|
||||
|
||||
|
||||
setup(
|
||||
name=NAME,
|
||||
version=VERSION,
|
||||
|
@ -67,5 +50,4 @@ setup(
|
|||
'django-appconf>=0.6.0',
|
||||
],
|
||||
zip_safe=False,
|
||||
cmdclass={'test': PyTest},
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue