AWS EC2 and VPC API support in standalone service for OpenStack.
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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. [tox]
  2. minversion = 2.1
  3. envlist = py27,pep8,docs,api-ref
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. # tox is silly... these need to be separated by a newline....
  8. whitelist_externals = bash
  9. find
  10. rm
  11. env
  12. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  13. setenv = VIRTUAL_ENV={envdir}
  14. LANG=en_US.UTF-8
  15. LANGUAGE=en_US:en
  16. LC_ALL=C
  17. deps = -r{toxinidir}/test-requirements.txt
  18. commands =
  19. find . -type f -name "*.pyc" -delete
  20. rm -f .testrepository/times.dbm
  21. [testenv:py27]
  22. commands =
  23. {[testenv]commands}
  24. stestr --test-path 'ec2api/tests/unit' run '{posargs}'
  25. stestr slowest
  26. [testenv:py35]
  27. commands =
  28. {[testenv]commands}
  29. stestr --test-path 'ec2api/tests/unit' run '{posargs}'
  30. stestr slowest
  31. [testenv:py36]
  32. commands =
  33. {[testenv]commands}
  34. stestr --test-path 'ec2api/tests/unit' run '{posargs}'
  35. stestr slowest
  36. [testenv:pep8]
  37. basepython = python3
  38. commands =
  39. flake8 {posargs}
  40. [testenv:genconfig]
  41. commands = oslo-config-generator --config-file=etc/ec2api/ec2api-config-generator.conf
  42. [testenv:venv]
  43. basepython = python3
  44. commands = {posargs}
  45. [testenv:docs]
  46. basepython = python3
  47. # This environment is called from CI scripts to test and publish
  48. # the API Ref and Docs to developer.openstack.org.
  49. commands = python setup.py build_sphinx
  50. [testenv:api-ref]
  51. # This environment is called from CI scripts to test and publish
  52. # the API Ref to developer.openstack.org.
  53. commands =
  54. rm -rf api-ref/build
  55. sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
  56. [flake8]
  57. # E712 is ignored on purpose, since it is normal to use 'column == true'
  58. # in sqlalchemy.
  59. # TODO Hacking 0.6 checks to fix
  60. # H102 Apache 2.0 license header not found
  61. ignore = E121,E122,E123,E124,E126,E127,E128,E711,E712,H102,H303,H404,F403,F811,F841
  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. exclude = .venv,.git,.tox,dist,envname,*lib/python*,*egg,build,tools
  66. max-complexity=25
  67. [hacking]
  68. local-check-factory = ec2api.hacking.checks.factory
  69. [testenv:lower-constraints]
  70. basepython = python3
  71. deps =
  72. -c{toxinidir}/lower-constraints.txt
  73. -r{toxinidir}/test-requirements.txt
  74. -r{toxinidir}/requirements.txt