diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 40 |
1 files changed, 8 insertions, 32 deletions
diff --git a/tox.ini b/tox.ini index 731094b5da..14437e7334 100644 --- a/tox.ini +++ b/tox.ini @@ -3,14 +3,11 @@ envlist = packaging, py27, py36, pep8, check_isort [base] deps = - Twisted>=17.1 mock python-subunit junitxml coverage - - # needed by some of the tests - lxml + parameterized # cyptography 2.2 requires setuptools >= 18.5 # @@ -33,12 +30,14 @@ setenv = [testenv] deps = {[base]deps} +extras = all whitelist_externals = sh setenv = {[base]setenv} + postgres: SYNAPSE_POSTGRES = 1 passenv = * @@ -48,8 +47,6 @@ commands = sh -c 'echo "import coverage; coverage.process_startup()" > {envsitepackagesdir}/../sitecustomize.py' {envbindir}/coverage run "{envbindir}/trial" {env:TRIAL_FLAGS:} {posargs:tests} {env:TOXSUFFIX:} -[testenv:py27] - # As of twisted 16.4, trial tries to import the tests as a package (previously # it loaded the files explicitly), which means they need to be on the # pythonpath. Our sdist doesn't include the 'tests' package, so normally it @@ -73,14 +70,7 @@ commands = # ) usedevelop=true -[testenv:py27-postgres] -usedevelop=true -deps = - {[base]deps} - psycopg2 -setenv = - {[base]setenv} - SYNAPSE_POSTGRES = 1 + # A test suite for the oldest supported versions of Python libraries, to catch # any uses of APIs not available in them. @@ -102,23 +92,8 @@ commands = pip install -e . {envbindir}/trial {env:TRIAL_FLAGS:} {posargs:tests} {env:TOXSUFFIX:} -[testenv:py35] -usedevelop=true - -[testenv:py36] -usedevelop=true - -[testenv:py36-postgres] -usedevelop=true -deps = - {[base]deps} - psycopg2 -setenv = - {[base]setenv} - SYNAPSE_POSTGRES = 1 - - [testenv:packaging] +skip_install=True deps = check-manifest commands = @@ -134,7 +109,7 @@ commands = /bin/sh -c "flake8 synapse tests scripts scripts-dev scripts/hash_pas [testenv:check_isort] skip_install = True deps = isort -commands = /bin/sh -c "isort -c -sp setup.cfg -rc synapse tests" +commands = /bin/sh -c "isort -c -df -sp setup.cfg -rc synapse tests" [testenv:check-newsfragment] skip_install = True @@ -150,4 +125,5 @@ deps = codecov commands = coverage combine - codecov -X gcov \ No newline at end of file + coverage xml + codecov -X gcov |