fuel-plugin-lma-collector/tox.ini
Swann Croiset a14820b33c Fix tox.ini to clean repositories before building plugin
Because tox doesn't support the shell glob.

Change-Id: I4253b49a002fe197599313d6171dfddd45491b41
2016-04-13 13:46:24 +02:00

91 lines
2.1 KiB
INI

[tox]
envlist = manifests,heka,fuel_lma_collector,lma_collector,docs,dev_docs,qa_docs,build_plugin,collectd_python
skipsdist = True
[testenv]
deps = -r{toxinidir}/test-requirements.txt
passenv = HOME
[testenv:manifests]
deps =
changedir = {toxinidir}/deployment_scripts/puppet/manifests
whitelist_externals =
bundle
mkdir
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[testenv:heka]
deps =
changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
whitelist_externals =
bundle
mkdir
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[testenv:lma_collector]
deps =
changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
whitelist_externals =
bundle
mkdir
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[testenv:fuel_lma_collector]
deps =
changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
whitelist_externals =
bundle
mkdir
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[flake8]
ignore = H105,H201,E241,H401
show-source = True
[testenv:collectd_python]
changedir = {toxinidir}/deployment_scripts/puppet/modules/lma_collector/files/collectd
whitelist_externals =
flake8
commands =
flake8 .
[testenv:docs]
changedir = {toxinidir}/doc/user
whitelist_externals = make
commands =
make clean html SPHINXOPTS=-W
[testenv:dev_docs]
changedir = {toxinidir}/doc/dev
whitelist_externals = make
commands =
make clean html SPHINXOPTS=-W
[testenv:qa_docs]
changedir = {toxinidir}/doc/qa
whitelist_externals = make
commands =
make clean html SPHINXOPTS=-W
[testenv:build_plugin]
changedir = {toxinidir}
whitelist_externals =
fpb
bash
commands =
bash -c "rm -rf .build repositories/ubuntu/*.deb repositories/centos/*.rpm"
fpb --check {toxinidir} --debug
fpb --build {toxinidir} --debug