Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 1 | [tox] |
Bin Sun | 6743060 | 2017-08-24 13:30:48 +0800 | [diff] [blame] | 2 | envlist = py27,pep8 |
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 | 4f42374 | 2019-03-04 04:30:40 +0000 | [diff] [blame^] | 9 | deps = |
| 10 | -r{toxinidir}/requirements.txt |
| 11 | -r{toxinidir}/test-requirements.txt |
| 12 | |
Hong Hui Xiao | 7bd7927 | 2017-08-28 16:54:57 +0800 | [diff] [blame] | 13 | commands = |
| 14 | /usr/bin/find . -type f -name "*.py[c|o]" -delete |
| 15 | python manage.py test multivimbroker |
Bin Sun | 6743060 | 2017-08-24 13:30:48 +0800 | [diff] [blame] | 16 | |
| 17 | [testenv:pep8] |
| 18 | deps=flake8 |
| 19 | commands=flake8 |
Hong Hui Xiao | 7bd7927 | 2017-08-28 16:54:57 +0800 | [diff] [blame] | 20 | |
| 21 | [testenv:py27] |
| 22 | commands = |
| 23 | {[testenv]commands} |
| 24 | |
| 25 | [testenv:cover] |
| 26 | setenv= |
| 27 | DJANGO_SETTINGS_MODULE = multivimbroker.settings-cover |
| 28 | commands = |
| 29 | coverage erase |
| 30 | {[testenv]commands} |
Ethan Lynn | c9effec | 2018-03-06 22:11:52 +0000 | [diff] [blame] | 31 | coverage xml -i |
Victor Morales | a2dcefa | 2018-08-27 11:37:06 -0700 | [diff] [blame] | 32 | |
| 33 | [testenv:rstcheck] |
| 34 | deps = rstcheck |
| 35 | whitelist_externals = bash |
| 36 | commands = bash -c "find ../docs -not -path {toxinidir}/.tox/\* \ |
| 37 | -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning" |
Victor Morales | b100bc4 | 2018-11-07 15:30:06 -0800 | [diff] [blame] | 38 | |
| 39 | [testenv:docs] |
| 40 | deps = sphinx |
| 41 | commands = sphinx-build -b html ../docs/ ../docs/html |