pegleg/tox.ini
Felipe Monteiro eb8c4a2b17 Add tox target for running unit tests and Makefile alias
This is to add a tox target for running unit tests in
src/bin/pegleg and to add an alias to the Makefile in root
directory.

Change-Id: Ia138c57e8d732f6dbf19f00e452b0eac1a1aa9cb
2018-04-03 21:31:56 +01:00

24 lines
581 B
INI

[tox]
envlist = py35, docs
# Allows docs to be built without setup.py having to exist. Requires that
# usedevelop be False as well (which it is by default).
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
[testenv:py35]
commands =
# Run all unit tests under src/bin/pegleg
tox -c src/bin/pegleg/tox.ini -e py35
whitelist_externals = tox
[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
commands =
rm -rf doc/build
sphinx-build -b html docs/source docs/build -n -W -v
whitelist_externals = rm