1
0

tox.ini 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [tox]
  2. envlist =
  3. py{27,34,35,36},
  4. py{27,34,35,36}-coverage,
  5. py{27,34,35,36}-pytest,
  6. py{27,34,35,36}-runtests,
  7. py{27,34,35,36}-pytest-coverage,
  8. py{27,34,35,36}-runtests-coverage,
  9. pylint-salt,
  10. pylint-tests
  11. skip_missing_interpreters = True
  12. skipsdist = True
  13. [testenv]
  14. passenv = LANG HOME
  15. sitepackages = True
  16. commands =
  17. python -c 'import sys; sys.stderr.write("\n\nPlease use nox instead.\n\n"); sys.exit(1)'
  18. [testenv:pylint-salt]
  19. basepython = python2.7
  20. deps = -r{toxinidir}/requirements/dev.txt
  21. commands =
  22. pylint --version
  23. pylint --rcfile=.testing.pylintrc --disable=I,W1307,C0411,C0413,W8410,str-format-in-logging {posargs:setup.py salt/}
  24. sitepackages = False
  25. [testenv:pylint-tests]
  26. basepython = python2.7
  27. deps = -r{toxinidir}/requirements/dev.txt
  28. commands =
  29. pylint --version
  30. pylint --rcfile=.testing.pylintrc --disable=I,W0232,E1002,W1307,C0411,C0413,W8410,str-format-in-logging {posargs:tests/}
  31. sitepackages = False
  32. [pytest]
  33. addopts = --junitxml=artifacts/xml-unittests-output/junit.xml --log-file=/tmp/salt-runtests.log --no-print-logs --ssh-tests -ra -vv --log-cli-level=debug --sys-stats
  34. testpaths = tests
  35. norecursedirs = tests/kitchen