Skip to content
Myr

Merge pull request #2331 from davidism/less-travis

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

Reduce test envs, add coverage reports, other test fixups

authored by David Lord · committed by GitHub · parents c62b614, 65b2292 · Browse files · 5 files+113 added−64 removed
This commit

State

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

Diff stats

5 files+113 added−64 removed

  • other:+113 added−64 removed

5 files+113 added−64 removed

added:.coveragerc+11 added
1[run]2branch = True3source =4 flask5 tests67[paths]8source =9 flask10 .tox/*/lib/python*/site-packages/flask11 .tox/pypy/site-packages/flask
modified:.travis.yml+49 added-40 removed
modified:setup.cfg+2 added-1 removed
6 unmodified lines
7[metadata]8license_file = LICENSE910[tool:pytest]11norecursedirs = .* *.egg *.egg-info env* artwork docs11minversion = 3.012testpaths = tests
modified:setup.py+1 added-1 removed
69 unmodified lines
70 include_package_data=True,71 zip_safe=False,72 platforms='any',73 install_requires=[74 'Werkzeug>=0.7',74 'Werkzeug>=0.9',75 'Jinja2>=2.4',76 'itsdangerous>=0.21',77 'click>=4.0',78 ],
22 unmodified lines
modified:tox.ini+50 added-22 removed
1[tox]2envlist = {py26,py27,pypy}-{lowest,release,devel}{,-simplejson}, {py33,py34,py35,py36}-{release,devel}{,-simplejson}2envlist =3 py{36,35,34,33,27,26,py}-release4 py{36,27,py}-release-simplejson5 py{36,33,27,26,py}-devel6 py{36,33,27,26,py}-lowest7 docs-html8 coverage-report910[testenv]11passenv = LANG6usedevelop=true7commands =8 # We need to install those after Flask is installed.9 pip install -e examples/flaskr10 pip install -e examples/minitwit11 pip install -e examples/patterns/largerapp12 pytest --cov=flask --cov-report html []13deps=14 pytest15 pytest-cov12usedevelop = true13deps =14 pytest>=315 coverage16 greenlet17 blinker1818 lowest: Werkzeug==0.719 lowest: Werkzeug==0.920 lowest: Jinja2==2.421 lowest: itsdangerous==0.2122 lowest: Click==4.022 lowest: blinker==1.02324 release: blinker24 devel: https://github.com/pallets/werkzeug/archive/master.tar.gz25 devel: https://github.com/pallets/markupsafe/archive/master.tar.gz26 devel: https://github.com/pallets/jinja/archive/master.tar.gz27 devel: https://github.com/pallets/itsdangerous/archive/master.tar.gz28 devel: https://github.com/pallets/click/archive/master.tar.gz2926 devel: git+https://github.com/pallets/werkzeug.git27 devel: git+https://github.com/pallets/markupsafe.git28 devel: git+https://github.com/pallets/jinja.git29 devel: git+https://github.com/pallets/itsdangerous.git30 devel: git+https://github.com/pallets/click.git31 devel: git+https://github.com/jek/blinker.git3230 simplejson: simplejson31commands =32 # the examples need to be installed to test successfully33 pip install -e examples/flaskr -q34 pip install -e examples/minitwit -q35 pip install -e examples/patterns/largerapp -q3637 # pytest-cov doesn't seem to play nice with -p38 coverage run -p -m pytest3935[testenv:docs]40[testenv:docs-html]41deps =42 sphinx43 flask-sphinx-themes44commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html4546[testenv:docs-linkcheck]47deps = sphinx48commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck4950[testenv:coverage-report]51deps = coverage52skip_install = true53commands =54 coverage combine55 coverage report56 coverage html5758[testenv:codecov]59passenv = CI TRAVIS TRAVIS_*60deps = codecov61skip_install = true62commands =63 coverage combine64 coverage report65 codecov