diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -16,8 +16,7 @@ skip_missing_interpreters = true description = run the unit tests with pytest under {basepython} setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname} passenv = DATEUTIL_MAY_CHANGE_TZ TOXENV CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* CODECOV_* -commands = python -m pytest -m "not xfail" {posargs: "{toxinidir}/dateutil/test" --cov-config="{toxinidir}/tox.ini" --cov=dateutil} - python -m pytest -m "xfail" {posargs: "{toxinidir}/dateutil/test"} +commands = python -m pytest {posargs: "{toxinidir}/dateutil/test" --cov-config="{toxinidir}/tox.ini" --cov=dateutil} deps = -rrequirements-dev.txt [testenv:coverage] @@ -50,10 +49,22 @@ source = dateutil skip_covered = True show_missing = True +[testenv:tz] +# Warning: This will modify the repository and is only intended to be run +# as part of the CI process, not locally. +description = Run the tests against the master of the tz database +basepython = python3.6 +deps = -r {toxinidir}/requirements-dev.txt +setenv = DATEUTIL_TZPATH = {envtmpdir}/tzdir/usr/share/zoneinfo +changedir = {toxworkdir} +commands = + {toxinidir}/ci_tools/run_tz_master_env.sh {envtmpdir} {toxinidir} + [testenv:docs] description = invoke sphinx-build to build the HTML docs, check that URIs are valid basepython = python3.6 -deps = sphinx >= 1.6.3, < 2 +deps = -r docs/requirements-docs.txt {[testenv]deps} commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" {posargs:-W --color -bhtml} sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" {posargs:-W --color -blinkcheck} + python setup.py check -r -s |