d2cdb1fa97
This project was deprecated out of stackforge and needs a home in fuel-library, where it current is used as a testing library. Tox is used so it can call tasks-test-requirements.txt with relative paths correctly. Otherwise, the relative path would have to be guessed based on where a user might call it. Change-Id: I742e167a77cca2ae47436cce7b1baf63e70fe063 Closes-Bug: #1507208
35 lines
777 B
INI
35 lines
777 B
INI
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
# and then run "tox" from this directory.
|
|
|
|
[tox]
|
|
minversion = 1.8
|
|
envlist = pep8,tasks
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
deps = -r{toxinidir}/python-test-requirements.txt
|
|
commands =
|
|
py.test {posargs:../../deployment}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs:}
|
|
|
|
[testenv:tasks]
|
|
deps = -r{toxinidir}/tasks-test-requirements.txt
|
|
commands =
|
|
tasks-validator {posargs:-d ../../deployment}
|
|
|
|
[testenv:pep8]
|
|
deps = hacking == 0.10.1
|
|
usedevelop = False
|
|
commands =
|
|
flake8 {posargs:}
|
|
|
|
[flake8]
|
|
exclude = .venv,.git,.tox,dist,doc,docs,*egg
|
|
show-pep8 = True
|
|
show-source = True
|
|
count = True
|