Charm Interface - Nova Compute
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tox.ini 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [tox]
  2. skipsdist = True
  3. envlist = pep8,py35
  4. skip_missing_interpreters = True
  5. [testenv]
  6. setenv = VIRTUAL_ENV={envdir}
  7. PYTHONHASHSEED=0
  8. TERM=linux
  9. install_command =
  10. pip install {opts} {packages}
  11. [testenv:py35]
  12. basepython = python3
  13. deps = -r{toxinidir}/test-requirements.txt
  14. commands = ostestr {posargs}
  15. [testenv:py36]
  16. basepython = python3.6
  17. deps = -r{toxinidir}/test-requirements.txt
  18. commands = ostestr {posargs}
  19. [testenv:pep8]
  20. basepython = python2.7
  21. deps = -r{toxinidir}/test-requirements.txt
  22. commands = flake8 {posargs} . unit_tests
  23. [testenv:cover]
  24. # Technique based heavily upon
  25. # https://github.com/openstack/nova/blob/master/tox.ini
  26. basepython = python3
  27. deps = -r{toxinidir}/test-requirements.txt
  28. setenv =
  29. {[testenv]setenv}
  30. PYTHON=coverage run
  31. commands =
  32. coverage erase
  33. ostestr {posargs}
  34. coverage combine
  35. coverage html -d cover
  36. coverage xml -o cover/coverage.xml
  37. coverage report
  38. [coverage:run]
  39. branch = True
  40. concurrency = multiprocessing
  41. parallel = True
  42. source =
  43. .
  44. omit =
  45. .tox/*
  46. */charmhelpers/*
  47. unit_tests/*
  48. [testenv:venv]
  49. commands = {posargs}
  50. [flake8]
  51. # E402 ignore necessary for path append before sys module import in actions
  52. ignore = E402