Merge OpenStack related logs meaningfully.
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 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. [tox]
  2. envlist = py35,py36,py37,py27,pep8
  3. minversion = 2.3.2
  4. skipsdist = True
  5. [testenv]
  6. setenv = VIRTUAL_ENV={envdir}
  7. PYTHONWARNINGS=default::DeprecationWarning
  8. passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  9. usedevelop = True
  10. install_command =
  11. pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  12. deps = -r{toxinidir}/requirements.txt
  13. -r{toxinidir}/test-requirements.txt
  14. whitelist_externals = sh
  15. commands =
  16. {toxinidir}/tools/ostestr_compat_shim.sh {posargs}
  17. # there is also secret magic in ostestr which lets you run in a fail only
  18. # mode. To do this define the TRACE_FAILONLY environmental variable.
  19. [testenv:common]
  20. # Fake job to define environment variables shared between dsvm/non-dsvm jobs
  21. setenv = OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:180}
  22. commands = false
  23. [testenv:pep8]
  24. basepython = python3
  25. deps =
  26. {[testenv]deps}
  27. commands=
  28. flake8
  29. sh ./tools/coding-checks.sh --pylint '{posargs}'
  30. whitelist_externals =
  31. sh
  32. bash
  33. [testenv:venv]
  34. commands = {posargs}
  35. [testenv:functional]
  36. basepython = python2.7
  37. commands=
  38. sh ./oslogmerger/tests/functional/functional.sh
  39. whitelist_externals =
  40. sh
  41. bash
  42. [testenv:functional-py35]
  43. basepython = python3.5
  44. commands=
  45. sh ./oslogmerger/tests/functional/functional.sh
  46. whitelist_externals =
  47. sh
  48. bash
  49. [testenv:functional-py36]
  50. basepython = python3.6
  51. commands=
  52. sh ./oslogmerger/tests/functional/functional.sh
  53. whitelist_externals =
  54. sh
  55. bash
  56. [testenv:functional-py37]
  57. basepython = python3.7
  58. commands=
  59. sh ./oslogmerger/tests/functional/functional.sh
  60. whitelist_externals =
  61. sh
  62. bash
  63. [flake8]
  64. # E125 continuation line does not distinguish itself from next logical line
  65. # E126 continuation line over-indented for hanging indent
  66. # E128 continuation line under-indented for visual indent
  67. # E129 visually indented line with same indent as next logical line
  68. # E265 block comment should start with '# '
  69. # H404 multi line docstring should start with a summary
  70. # H405 multi line docstring summary not separated with an empty line
  71. # N530 direct neutron imports not allowed
  72. # TODO(ihrachys) figure out what to do with N534 and N536
  73. # N534 Untranslated exception message
  74. # N536 Use assertIsNone rather than assertEqual to check for None values
  75. ignore = E125,E126,E128,E129,E265,H404,H405,N530,N534,N536
  76. # H106: Don't put vim configuration in source files
  77. # H203: Use assertIs(Not)None to check for None
  78. # H904: Delay string interpolations at logging calls
  79. enable-extensions=H106,H203,H904
  80. show-source = true
  81. exclude = ./.*,build,dist,doc
  82. import-order-style = pep8