summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDaniel Hahler <github@thequod.de>2017-10-10 21:44:43 +0200
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2017-10-10 21:44:43 +0200
commitb471d346e93b818d7c8a87d8cee9e0705435ac19 (patch)
treeefeb16193fb1added1025453a5d8c77ce8e597bc /tox.ini
parent5210849f8fd0678998723014c711c93af6edd5ce (diff)
downloadclick-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.ini10
1 files changed, 6 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index 91bef64..de1fb38 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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