[tox] envlist = py36 [testenv] passenv = TEST_OPSDB_HOSTNAME TEST_OPSDB_DBNAME TEST_OPSDB_USERNAME TEST_OPSDB_PASSWORD deps = coverage flake8 -r requirements.txt #install_command = pip install --pre --extra-index-url http://pip.geant.net/ --trusted-host pip.geant.net {opts} {packages} commands = coverage erase coverage run --source inventory_provider --omit='inventory_provider/routes/ims*,inventory_provider/db/ims*,inventory_provider/tasks/ims*' -m py.test {posargs} coverage xml coverage html coverage report --fail-under 75 # coverage report --fail-under 80 flake8 sphinx-build -M html docs/source docs/build