Coordinate distributed systems.
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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [tox]
  2. minversion = 1.8
  3. envlist = py27,py35,py{27,35}-{zookeeper,redis,sentinel,memcached,postgresql,mysql,consul,etcd,etcd3,etcd3gw},pep8
  4. [testenv]
  5. # We need to install a bit more than just `test' because those drivers have
  6. # custom tests that we always run
  7. deps = .[test,zake,ipc,memcached,mysql,etcd,etcd3,etcd3gw]
  8. zookeeper: .[zookeeper]
  9. redis: .[redis]
  10. sentinel: .[redis]
  11. memcached: .[memcached]
  12. postgresql: .[postgresql]
  13. mysql: .[mysql]
  14. etcd: .[etcd]
  15. etcd3: .[etcd3]
  16. etcd3gw: .[etcd3gw]
  17. consul: .[consul]
  18. setenv =
  19. TOOZ_TEST_URLS = file:///tmp zake:// ipc://
  20. zookeeper: TOOZ_TEST_DRIVERS = zookeeper
  21. redis: TOOZ_TEST_DRIVERS = redis
  22. sentinel: TOOZ_TEST_DRIVERS = redis --sentinel
  23. memcached: TOOZ_TEST_DRIVERS = memcached
  24. mysql: TOOZ_TEST_DRIVERS = mysql
  25. postgresql: TOOZ_TEST_DRIVERS = postgresql
  26. etcd: TOOZ_TEST_DRIVERS = etcd,etcd --cluster
  27. etcd3: TOOZ_TEST_DRIVERS = etcd
  28. etcd3: TOOZ_TEST_ETCD3 = 1
  29. etcd3gw: TOOZ_TEST_DRIVERS = etcd
  30. etcd3gw: TOOZ_TEST_ETCD3GW = 1
  31. consul: TOOZ_TEST_DRIVERS = consul
  32. # NOTE(tonyb): This project has chosen to *NOT* consume upper-constraints.txt
  33. commands =
  34. {toxinidir}/run-tests.sh {toxinidir}/tools/pretty_tox.sh "{posargs}"
  35. {toxinidir}/run-examples.sh
  36. [testenv:venv]
  37. # This target is used by the gate go run Sphinx to build the doc
  38. deps = {[testenv:docs]deps}
  39. commands = {posargs}
  40. [testenv:cover]
  41. commands = python setup.py testr --slowest --coverage --testr-args="{posargs}"
  42. [testenv:docs]
  43. deps = -r{toxinidir}/doc/requirements.txt
  44. commands = sphinx-build -W -b html doc/source doc/build/html
  45. [testenv:pep8]
  46. deps = hacking<0.13,>=0.12
  47. doc8
  48. commands =
  49. flake8
  50. doc8 doc/source
  51. [flake8]
  52. exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,doc
  53. show-source = True
  54. [testenv:releasenotes]
  55. deps = -r{toxinidir}/doc/requirements.txt
  56. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html