diff options
author | Alessandro Amici <a.amici@bopen.eu> | 2018-05-15 20:24:46 +0200 |
---|---|---|
committer | Alessandro Amici <a.amici@bopen.eu> | 2018-05-15 20:24:46 +0200 |
commit | e43681cc31c1b2aa0b11941d8d447488e62fa3c5 (patch) | |
tree | 8da1ec1ae6b35a2b229b3047221df9ccc9b2f28f /tox.ini | |
parent | a71e21abde0f45155c86d044bf609a7d37a891ba (diff) |
Add tox CI testing and requirements-tests.txt.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +[tox] +envlist = qc, py36, py35, py34, deps + +[testenv] +setenv = PYTHONPATH = {toxinidir} +deps = -r{toxinidir}/tests/requirements-tests.txt +commands = pytest -v --flakes --cache-clear --basetemp={envtmpdir} {posargs} + +[testenv:qc] +# needed for pytest-cov +usedevelop = true +commands = pytest -v --pep8 --mccabe --cov=cdsapi --cov-report=html --cache-clear {posargs} + +[testenv:deps] +deps = +commands = python setup.py test |