diff options
author | Rebecka Gulliksson <rebecka.gulliksson@umu.se> | 2015-11-12 10:54:53 +0100 |
---|---|---|
committer | Rebecka Gulliksson <rebecka.gulliksson@umu.se> | 2015-11-12 10:54:53 +0100 |
commit | 1eb06f7374cc55c1fd99d6349f72be0644b30b02 (patch) | |
tree | 161a8b70a843625fb02329900ff03d969545e475 | |
parent | c987ac88c7aebad0b4a48e9bfd91f5e1f5a465e0 (diff) | |
download | pysaml2-1eb06f7374cc55c1fd99d6349f72be0644b30b02.tar.gz |
Update tox.ini to actually run tests and make Travis use it.
Remove py.test runner from setup.py.
-rw-r--r-- | .travis.yml | 9 | ||||
-rwxr-xr-x | setup.py | 17 | ||||
-rw-r--r-- | tox.ini | 8 |
3 files changed, 8 insertions, 26 deletions
diff --git a/.travis.yml b/.travis.yml index 9a7d9ea9..b9fdd09f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,8 @@ language: python sudo: false env: - - TOX_ENV=py27 - - TOX_ENV=py34 + - TOXENV=py27 + - TOXENV=py34 addons: apt: @@ -14,5 +14,8 @@ addons: services: - mongodb +install: + - pip install -U tox + script: - - ./setup.py test + - tox @@ -6,21 +6,6 @@ import sys from setuptools import setup from setuptools.command.test import test as TestCommand - -class PyTest(TestCommand): - - def finalize_options(self): - TestCommand.finalize_options(self) - self.test_args = [] - self.test_suite = True - - def run_tests(self): - #import here, cause outside the eggs aren't loaded - import pytest - errno = pytest.main(self.test_args) - sys.exit(errno) - - install_requires = [ # core dependencies 'decorator', @@ -85,6 +70,4 @@ setup( }, install_requires=install_requires, zip_safe=False, - test_suite='tests', - cmdclass={'test': PyTest}, ) @@ -2,9 +2,5 @@ envlist = py27,py34 [testenv] -basepython = - py27: python2.7 - py34: python3.4 - -deps = - pytest +deps = pytest +commands = py.test tests/ |