Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 1 | [tox] |
Bin Yang | cba3533 | 2019-09-27 02:14:32 +0000 | [diff] [blame] | 2 | envlist = py36,pep8,cover |
Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 3 | skipsdist = true |
| 4 | |
| 5 | [tox:jenkins] |
| 6 | downloadcache = ~/cache/pip |
| 7 | |
| 8 | [testenv] |
Bin Yang | cba3533 | 2019-09-27 02:14:32 +0000 | [diff] [blame] | 9 | basepython = |
| 10 | py36: python3 |
| 11 | pep8: python3 |
| 12 | cover: python3 |
Bin Yang | 4f42374 | 2019-03-04 04:30:40 +0000 | [diff] [blame] | 13 | deps = |
| 14 | -r{toxinidir}/requirements.txt |
| 15 | -r{toxinidir}/test-requirements.txt |
| 16 | |
Hong Hui Xiao | 7bd7927 | 2017-08-28 16:54:57 +0800 | [diff] [blame] | 17 | commands = |
| 18 | /usr/bin/find . -type f -name "*.py[c|o]" -delete |
| 19 | python manage.py test multivimbroker |
Bin Sun | 6743060 | 2017-08-24 13:30:48 +0800 | [diff] [blame] | 20 | |
| 21 | [testenv:pep8] |
| 22 | deps=flake8 |
| 23 | commands=flake8 |
Hong Hui Xiao | 7bd7927 | 2017-08-28 16:54:57 +0800 | [diff] [blame] | 24 | |
Bin Yang | cba3533 | 2019-09-27 02:14:32 +0000 | [diff] [blame] | 25 | # [testenv:py27] |
| 26 | # commands = |
| 27 | # {[testenv]commands} |
Hong Hui Xiao | 7bd7927 | 2017-08-28 16:54:57 +0800 | [diff] [blame] | 28 | |
| 29 | [testenv:cover] |
| 30 | setenv= |
| 31 | DJANGO_SETTINGS_MODULE = multivimbroker.settings-cover |
| 32 | commands = |
| 33 | coverage erase |
| 34 | {[testenv]commands} |
Bin Yang | 0ad45fb | 2019-12-10 09:15:55 +0000 | [diff] [blame] | 35 | coverage xml -i --omit="*/api_v2/*,./venv-tox/*,./.tox/*,*tests*,*site-packages*" |
Victor Morales | a2dcefa | 2018-08-27 11:37:06 -0700 | [diff] [blame] | 36 | |
| 37 | [testenv:rstcheck] |
| 38 | deps = rstcheck |
| 39 | whitelist_externals = bash |
| 40 | commands = bash -c "find ../docs -not -path {toxinidir}/.tox/\* \ |
| 41 | -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning" |
Victor Morales | b100bc4 | 2018-11-07 15:30:06 -0800 | [diff] [blame] | 42 | |
| 43 | [testenv:docs] |
| 44 | deps = sphinx |
| 45 | commands = sphinx-build -b html ../docs/ ../docs/html |