blob: 8baa1c815b933d41dbe66423d1aab4be57310287 [file] [log] [blame]
[tox]
envlist = py26,py27,pypy,py33,py34,lint,cover
[testenv]
deps = nose
commands =
pip install google-apitools[testing]
nosetests []
[testenv:py33]
basepython = python3.3
deps =
mock
nose
unittest2
commands = nosetests []
[testenv:py34]
basepython = python3.4
deps =
mock
nose
unittest2
commands = nosetests []
[pep8]
exclude = samples/storage_sample/storage,samples/storage_sample/testdata,*.egg/,.*/,ez_setup.py
verbose = 1
[testenv:lint]
basepython =
python2.7
commands =
pep8
python run_pylint.py
deps =
pep8
pylint
unittest2
[testenv:cover]
basepython =
python2.7
commands =
nosetests --with-xunit --with-xcoverage --cover-package=apitools --nocapture --cover-erase --cover-tests --cover-branches []
deps =
google-apputils
python-gflags
mock
nose
unittest2
coverage
nosexcover
[testenv:coveralls]
basepython = {[testenv:cover]basepython}
commands =
{[testenv:cover]commands}
coveralls
deps =
{[testenv:cover]deps}
coveralls
passenv = TRAVIS*
[testenv:transfer_coverage]
basepython =
python2.7
deps =
mock
nose
unittest2
coverage
commands =
coverage run --branch -p samples/storage_sample/downloads_test.py
coverage run --branch -p samples/storage_sample/uploads_test.py
coverage run --branch -p apitools/base/py/transfer_test.py
coverage combine
coverage html