diff options
author | Daniel Hahler <github@thequod.de> | 2017-10-10 21:44:43 +0200 |
---|---|---|
committer | Markus Unterwaditzer <markus@unterwaditzer.net> | 2017-10-10 21:44:43 +0200 |
commit | b471d346e93b818d7c8a87d8cee9e0705435ac19 (patch) | |
tree | efeb16193fb1added1025453a5d8c77ce8e597bc /tox.ini | |
parent | 5210849f8fd0678998723014c711c93af6edd5ce (diff) | |
download | click-b471d346e93b818d7c8a87d8cee9e0705435ac19.tar.gz |
Improve Travis / tox setup + coverage (#851)
* Improve Travis / tox setup
Mainly inspired by using pytest directly in tox, for easy test selection
etc.
* Travis: use lightweight containers (sudo=false)
* coverage/codecov integration
* include TEST_EXTRA as codecov flag
* codecov: -X fix
This hopefully works around `complex/complex/commands/__init__.py` and
`termui/termui.py` showing up in `examples` (at the root).
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,10 +1,12 @@ [tox] -envlist = py26,py27,py33,py34,pypy +envlist = py{26,27,33,34,35,36,py} [testenv] passenv = LANG -commands = make test +commands = {env:TEST_RUNNER:pytest} {posargs} deps = - colorama pytest -whitelist_externals = make + colorama: colorama + coverage: coverage +setenv = + coverage: TEST_RUNNER=coverage run -m pytest |