blob: 7ba8967c1ebb5c1ad691c4d52f509eb6ac0f81bb [file] [log] [blame]
Bin Yangb1b03862017-02-22 11:15:28 +08001[tox]
Bin Yangcba35332019-09-27 02:14:32 +00002envlist = py36,pep8,cover
Bin Yangb1b03862017-02-22 11:15:28 +08003skipsdist = true
4
5[tox:jenkins]
6downloadcache = ~/cache/pip
7
8[testenv]
Bin Yangcba35332019-09-27 02:14:32 +00009basepython =
10 py36: python3
11 pep8: python3
12 cover: python3
Bin Yang4f423742019-03-04 04:30:40 +000013deps =
14 -r{toxinidir}/requirements.txt
15 -r{toxinidir}/test-requirements.txt
16
Hong Hui Xiao7bd79272017-08-28 16:54:57 +080017commands =
18 /usr/bin/find . -type f -name "*.py[c|o]" -delete
19 python manage.py test multivimbroker
Bin Sun67430602017-08-24 13:30:48 +080020
21[testenv:pep8]
22deps=flake8
23commands=flake8
Hong Hui Xiao7bd79272017-08-28 16:54:57 +080024
Bin Yangcba35332019-09-27 02:14:32 +000025# [testenv:py27]
26# commands =
27# {[testenv]commands}
Hong Hui Xiao7bd79272017-08-28 16:54:57 +080028
29[testenv:cover]
30setenv=
31 DJANGO_SETTINGS_MODULE = multivimbroker.settings-cover
32commands =
33 coverage erase
34 {[testenv]commands}
Bin Yang0ad45fb2019-12-10 09:15:55 +000035 coverage xml -i --omit="*/api_v2/*,./venv-tox/*,./.tox/*,*tests*,*site-packages*"
Victor Moralesa2dcefa2018-08-27 11:37:06 -070036
37[testenv:rstcheck]
38deps = rstcheck
39whitelist_externals = bash
40commands = bash -c "find ../docs -not -path {toxinidir}/.tox/\* \
41 -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning"
Victor Moralesb100bc42018-11-07 15:30:06 -080042
43[testenv:docs]
44deps = sphinx
45commands = sphinx-build -b html ../docs/ ../docs/html