mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
enable tox for tests
This commit is contained in:
parent
36b0b1174b
commit
51eca1a6bd
3
.gitignore
vendored
3
.gitignore
vendored
@ -88,3 +88,6 @@ tests/integration/cloud/providers/logs
|
|||||||
|
|
||||||
# Private keys from the integration tests
|
# Private keys from the integration tests
|
||||||
tests/integration/cloud/providers/pki/minions
|
tests/integration/cloud/providers/pki/minions
|
||||||
|
|
||||||
|
# Ignore tox virtualenvs
|
||||||
|
/.tox/
|
||||||
|
16
tox.ini
Normal file
16
tox.ini
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[tox]
|
||||||
|
envlist = py27,py34,py35,py36
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
sitepackages = True
|
||||||
|
deps =
|
||||||
|
py27,pylint: -r{toxinidir}/requirements/dev_python27.txt
|
||||||
|
py34,py35,py36: -r{toxinidir}/requirements/dev_python34.txt
|
||||||
|
commands =
|
||||||
|
py27: python2 {toxinidir}/tests/runtests.py {posargs:-v --run-destructive}
|
||||||
|
py34,py35,py36: python3 {toxinidir}/tests/runtests.py {posargs:-v --run-destructive}
|
||||||
|
|
||||||
|
[testenv:pylint]
|
||||||
|
basepython = python2.7
|
||||||
|
commands = pylint --rcfile={toxinidir}/.testing.pylintrc --disable=W1307 {posargs:setup.py salt/}
|
||||||
|
pylint --rcfile={toxinidir}/.testing.pylintrc --disable=W0232,E1002,W1307 {posargs:tests/}
|
Loading…
Reference in New Issue
Block a user