Fuel plugin to collect Logging Monitoring and Alerting metrics
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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [tox]
  2. envlist = manifests,heka,fuel_lma_collector,lma_collector,docs,dev_docs,qa_docs,build_plugin,collectd_python
  3. skipsdist = True
  4. [testenv]
  5. deps = -r{toxinidir}/test-requirements.txt
  6. passenv = HOME
  7. [testenv:manifests]
  8. deps =
  9. changedir = {toxinidir}/deployment_scripts/puppet/manifests
  10. whitelist_externals =
  11. bundle
  12. mkdir
  13. commands =
  14. mkdir -p {toxinidir}/.bundled_gems
  15. bundle install --path {toxinidir}/.bundled_gems
  16. bundle exec rake test
  17. [testenv:heka]
  18. deps =
  19. changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
  20. whitelist_externals =
  21. bundle
  22. mkdir
  23. commands =
  24. mkdir -p {toxinidir}/.bundled_gems
  25. bundle install --path {toxinidir}/.bundled_gems
  26. bundle exec rake test
  27. [testenv:lma_collector]
  28. deps =
  29. changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
  30. whitelist_externals =
  31. bundle
  32. mkdir
  33. commands =
  34. mkdir -p {toxinidir}/.bundled_gems
  35. bundle install --path {toxinidir}/.bundled_gems
  36. bundle exec rake test
  37. [testenv:fuel_lma_collector]
  38. deps =
  39. changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
  40. whitelist_externals =
  41. bundle
  42. mkdir
  43. commands =
  44. mkdir -p {toxinidir}/.bundled_gems
  45. bundle install --path {toxinidir}/.bundled_gems
  46. bundle exec rake test
  47. [flake8]
  48. ignore = H105,H201,E241,H401
  49. show-source = True
  50. [testenv:collectd_python]
  51. changedir = {toxinidir}/deployment_scripts/puppet/modules/lma_collector/files/collectd
  52. whitelist_externals =
  53. flake8
  54. commands =
  55. flake8 .
  56. [testenv:docs]
  57. changedir = {toxinidir}/doc/user
  58. whitelist_externals = make
  59. commands =
  60. make clean html SPHINXOPTS=-W
  61. [testenv:dev_docs]
  62. changedir = {toxinidir}/doc/dev
  63. whitelist_externals = make
  64. commands =
  65. make clean html SPHINXOPTS=-W
  66. [testenv:qa_docs]
  67. changedir = {toxinidir}/doc/qa
  68. whitelist_externals = make
  69. commands =
  70. make clean html SPHINXOPTS=-W
  71. [testenv:build_plugin]
  72. changedir = {toxinidir}
  73. whitelist_externals =
  74. fpb
  75. bash
  76. commands =
  77. bash -c "rm -rf .build repositories/ubuntu/*.deb repositories/centos/*.rpm"
  78. fpb --check {toxinidir} --debug
  79. fpb --build {toxinidir} --debug