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
Provenance
- Commit
471c7f3- Tree
3debf3f- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
c62b614- Parent 2
65b2292
5 files changed+113 added−64 removed
added:.coveragerc+11 added
1+[run]2+branch = True3+source =4+ flask5+ tests6+7+[paths]8+source =9+ flask10+ .tox/*/lib/python*/site-packages/flask11+ .tox/pypy/site-packages/flaskmodified:.travis.yml+49 added-40 removed
1234567891011121314151617181920422232425262728293031323334353637383956789101112131415161718192021222324252627282930313233343536373839404142434445464748495051425253544555564748495758596061626 unmodified linessudo: falselanguage: python
python: - "2.6" - "2.7" - "pypy" - "3.3" - "3.4" - "3.5" - "3.6"
env: - REQUIREMENTS=lowest - REQUIREMENTS=lowest-simplejson - REQUIREMENTS=release - REQUIREMENTS=release-simplejson - REQUIREMENTS=devel - REQUIREMENTS=devel-simplejson
matrix: exclude: # Python 3 support currently does not work with lowest requirements - python: "3.3" env: REQUIREMENTS=lowest - python: "3.3" env: REQUIREMENTS=lowest-simplejson - python: "3.4" env: REQUIREMENTS=lowest - python: "3.4" env: REQUIREMENTS=lowest-simplejson - python: "3.5" env: REQUIREMENTS=lowest - python: "3.5" env: REQUIREMENTS=lowest-simplejson - python: "3.6" env: REQUIREMENTS=lowest - python: "3.6" env: REQUIREMENTS=lowest-simplejson include: - python: 3.6 env: TOXENV=py-release,codecov - python: 3.5 env: TOXENV=py-release,codecov - python: 3.4 env: TOXENV=py-release,codecov - python: 3.3 env: TOXENV=py-release,codecov - python: 2.7 env: TOXENV=py-release,codecov - python: 2.6 env: TOXENV=py-release,codecov - python: pypy env: TOXENV=py-release,codecov - python: nightly env: TOXENV=py-release - python: 3.6 env: TOXENV=docs-html - python: 3.6 env: TOXENV=py-release-simplejson,codecov - python: 2.7 env: TOXENV=py-release-simplejson,codecov - python: pypy env: TOXENV=py-release-simplejson,codecov - python: 3.6 env: TOXENV=py-devel,codecov - python: 3.3 env: TOXENV=py-devel,codecov - python: 2.7 env: TOXENV=py-devel,codecov - python: 2.6 env: TOXENV=py-devel,codecov - python: pypy env: TOXENV=py-devel,codecov - python: 3.6 env: TOXENV=py-lowest,codecov - python: 3.3 env: TOXENV=py-lowest,codecov - python: 2.7 env: TOXENV=py-lowest,codecov - python: 2.6 env: TOXENV=py-lowest,codecov - python: pypy env: TOXENV=py-lowest,codecov
install: - pip install tox - pip install tox
script: - tox -e py-$REQUIREMENTS - tox
branches: except: - websitecache: - pip
notifications: email: false irc:6 unmodified linesmodified:setup.cfg+2 added-1 removed
6 unmodified lines7 [metadata]8 license_file = LICENSE9 10 [tool:pytest]11-norecursedirs = .* *.egg *.egg-info env* artwork docs11+minversion = 3.012+testpaths = testsmodified:setup.py+1 added-1 removed
69 unmodified lines70 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 linesmodified:tox.ini+50 added-22 removed
1 [tox]2-envlist = {py26,py27,pypy}-{lowest,release,devel}{,-simplejson}, {py33,py34,py35,py36}-{release,devel}{,-simplejson}2+envlist =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-report9 10 [testenv]11 passenv = LANG6-usedevelop=true7-commands =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 []13-deps=14- pytest15- pytest-cov12+usedevelop = true13+deps =14+ pytest>=315+ coverage16 greenlet17+ blinker18 18- lowest: Werkzeug==0.719+ lowest: Werkzeug==0.920 lowest: Jinja2==2.421 lowest: itsdangerous==0.2122 lowest: Click==4.022- lowest: blinker==1.023 24- 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.gz29 26- 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.git32-30 simplejson: simplejson31+commands =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 -q36 37+ # pytest-cov doesn't seem to play nice with -p38+ coverage run -p -m pytest39+35-[testenv:docs]40+[testenv:docs-html]41+deps =42+ sphinx43+ flask-sphinx-themes44+commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html45+46+[testenv:docs-linkcheck]47 deps = sphinx48 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck49+50+[testenv:coverage-report]51+deps = coverage52+skip_install = true53+commands =54+ coverage combine55+ coverage report56+ coverage html57+58+[testenv:codecov]59+passenv = CI TRAVIS TRAVIS_*60+deps = codecov61+skip_install = true62+commands =63+ coverage combine64+ coverage report65+ codecov