Fuel anonymous statistics collector
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.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. [tox]
  2. minversion = 1.6
  3. skipsdist = True
  4. envlist = py27,pep8
  5. [testenv]
  6. usedevelop = True
  7. whitelist_externals = bash
  8. install_command = pip install {packages}
  9. setenv = VIRTUAL_ENV={envdir}
  10. FUELSTAT_CI_CONFIG={toxinidir}/config_for_ci
  11. COLLECTOR_SETTINGS={toxinidir}/config_for_ci
  12. ANALYTICS_SETTINGS={toxinidir}/config_for_ci
  13. FUELSTAT_DB=openstack_citest
  14. FUELSTAT_DB_USER=openstack_citest
  15. FUELSTAT_DB_PW=openstack_citest
  16. FUELSTAT_DB_ROOT=postgres
  17. FUELSTAT_DB_ROOTPW=insecure_slave
  18. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  19. deps =
  20. -r{toxinidir}/test-requirements.txt
  21. commands =
  22. bash "{toxinidir}/tools/prepare_ci_config.sh"
  23. python {toxinidir}/collector/manage_collector.py --mode test db upgrade \
  24. -d {toxinidir}/collector/collector/api/db/migrations/
  25. nosetests {posargs:collector/collector/test analytics/fuel_analytics/test}
  26. [testenv:pep8]
  27. deps = hacking==0.7
  28. usedevelop = False
  29. commands =
  30. flake8 {posargs:analytics/fuel_analytics collector/collector \
  31. migration/migration}
  32. [testenv:cover]
  33. setenv = NOSE_WITH_COVERAGE=1
  34. [testenv:venv]
  35. commands = {posargs:}
  36. [testenv:devenv]
  37. envdir = devenv
  38. usedevelop = True
  39. [flake8]
  40. ignore = H302
  41. exclude = .venv,.git,.tox,dist,doc,*egg,build,docs
  42. show-pep8 = True
  43. show-source = True
  44. count = True
  45. [hacking]
  46. import_exceptions = testtools.matchers