blob: ef0387e7d3ac94fef48bf28e223f4a1e7b53163d [file] [log] [blame]
Bin Yangb1b03862017-02-22 11:15:28 +08001[tox]
Bin Sun67430602017-08-24 13:30:48 +08002envlist = py27,pep8
Bin Yangb1b03862017-02-22 11:15:28 +08003skipsdist = true
4
5[tox:jenkins]
6downloadcache = ~/cache/pip
7
8[testenv]
Bin Yang4f423742019-03-04 04:30:40 +00009deps =
10 -r{toxinidir}/requirements.txt
11 -r{toxinidir}/test-requirements.txt
12
Hong Hui Xiao7bd79272017-08-28 16:54:57 +080013commands =
14 /usr/bin/find . -type f -name "*.py[c|o]" -delete
15 python manage.py test multivimbroker
Bin Sun67430602017-08-24 13:30:48 +080016
17[testenv:pep8]
18deps=flake8
19commands=flake8
Hong Hui Xiao7bd79272017-08-28 16:54:57 +080020
21[testenv:py27]
22commands =
23 {[testenv]commands}
24
25[testenv:cover]
26setenv=
27 DJANGO_SETTINGS_MODULE = multivimbroker.settings-cover
28commands =
29 coverage erase
30 {[testenv]commands}
Ethan Lynnc9effec2018-03-06 22:11:52 +000031 coverage xml -i
Victor Moralesa2dcefa2018-08-27 11:37:06 -070032
33[testenv:rstcheck]
34deps = rstcheck
35whitelist_externals = bash
36commands = bash -c "find ../docs -not -path {toxinidir}/.tox/\* \
37 -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning"
Victor Moralesb100bc42018-11-07 15:30:06 -080038
39[testenv:docs]
40deps = sphinx
41commands = sphinx-build -b html ../docs/ ../docs/html