Skip to content
Myr

Improve Travis / tox setup + coverage (#851)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* 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).

authored by Daniel Hahler · committed by Markus Unterwaditzer · parent 5210849 · Browse files · 7 files+33 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+33 added−12 removed

  • other:+33 added−12 removed

7 files+33 added−12 removed

added:.coveragerc+3 added
1[run]2branch = true3source = click,tests
deleted:.travis-colorama-requirements.txt-1 removed
1colorama
deleted:.travis-default-requirements.txt
modified:.travis.yml+22 added-5 removed
modified:Makefile+1 added-1 removed
1test:2 @cd tests; PYTHONPATH=.. py.test --tb=short2 @cd tests; PYTHONPATH=.. pytest --tb=short34upload-docs:5 $(MAKE) -C docs dirhtml6 rsync -a docs/_build/dirhtml/* flow.srv.pocoo.org:/srv/websites/click.pocoo.org/static/
5 unmodified lines
modified:setup.cfg+1 added-1 removed
3 unmodified lines
4[metadata]5license_file = LICENSE67[tool:pytest]8addopts = -p no:warnings8addopts = -p no:warnings --tb=short
modified:tox.ini+6 added-4 removed
1[tox]2envlist = py26,py27,py33,py34,pypy2envlist = py{26,27,33,34,35,36,py}34[testenv]5passenv = LANG6commands = make test6commands = {env:TEST_RUNNER:pytest} {posargs}7deps =8 colorama8 pytest10whitelist_externals = make9 colorama: colorama10 coverage: coverage11setenv =12 coverage: TEST_RUNNER=coverage run -m pytest