Monasca Transform and Aggregation Engine
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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. [tox]
  2. envlist = py27,pep8
  3. minversion = 1.6
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install {opts} {packages}
  8. setenv =
  9. PYTHONUNBUFFERED=1
  10. VIRTUAL_ENV={envdir}
  11. OS_TEST_PATH=tests/unit
  12. deps =
  13. -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  14. -r{toxinidir}/requirements.txt
  15. -r{toxinidir}/test-requirements.txt
  16. psutil==3.0.1
  17. whitelist_externals = bash
  18. find
  19. commands =
  20. find . -type f -name "*.pyc" -delete
  21. stestr run {posargs}
  22. [testenv:functional]
  23. basepython = python2.7
  24. setenv = {[testenv]setenv}
  25. SPARK_HOME=/opt/spark/current
  26. SPARK_SCALA_VERSION=2.10
  27. OS_TEST_PATH=tests/functional
  28. commands =
  29. stestr run --serial {posargs}
  30. [testenv:functional-py35]
  31. basepython = python3.5
  32. setenv = {[testenv]setenv}
  33. SPARK_HOME=/opt/spark/current
  34. OS_TEST_PATH=tests/functional
  35. commands =
  36. stestr run --serial {posargs}
  37. [testenv:pep8]
  38. basepython = python3
  39. commands =
  40. flake8
  41. [testenv:docs]
  42. commands =
  43. python setup.py build_sphinx
  44. [testenv:venv]
  45. basepython = python3
  46. commands = {posargs}
  47. [testenv:cover]
  48. basepython = python3
  49. # Also do not run test_coverage_ext tests while gathering coverage as those
  50. # tests conflict with coverage.
  51. setenv =
  52. PYTHON=coverage run --source monasca_transform --parallel-mode
  53. commands =
  54. find monasca_transform -type f -name "*.pyc" -delete
  55. stestr run {posargs}
  56. coverage combine
  57. coverage html -d cover
  58. coverage xml -o cover/coverage.xml
  59. [flake8]
  60. max-complexity = 30
  61. max-line-length = 100
  62. # H106 Don’t put vim configuration in source files
  63. # H203 Use assertIs(Not)None to check for None
  64. enable-extensions=H106,H203
  65. show-source = True
  66. exclude=.venv,.git,.tox,dist,*egg,build
  67. [testenv:lower-constraints]
  68. basepython = python3
  69. deps =
  70. -c{toxinidir}/lower-constraints.txt
  71. -r{toxinidir}/test-requirements.txt
  72. -r{toxinidir}/requirements.txt