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

Change-Id: I31a4eb533c87c84ed6b7f47bc5a4bd90416d8959
2016-04-14 09:23:50 +02:00

59 lines
1.3 KiB
INI

[tox]
envlist = manifests,nagios,lma_infra_alerting,docs,build_plugin
skipsdist = True
[testenv]
passenv = HOME
[testenv:manifests]
deps =
changedir = {toxinidir}/deployment_scripts/puppet/manifests
whitelist_externals =
mkdir
bundle
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[testenv:nagios]
deps =
changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
whitelist_externals =
mkdir
bundle
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[testenv:lma_infra_alerting]
deps =
changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
whitelist_externals =
mkdir
bundle
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[testenv:docs]
deps= -r{toxinidir}/docs-requirements.txt
changedir = {toxinidir}/doc
whitelist_externals = make
commands =
make clean html SPHINXOPTS=-W
[testenv:build_plugin]
deps= -r{toxinidir}/build_plugin-requirements.txt
changedir = {toxinidir}
whitelist_externals =
bash
fpb
find
commands =
bash -c "rm -rf .build repositories/ubuntu/*.deb repositories/centos/*.rpm"
fpb --check {toxinidir} --debug
fpb --build {toxinidir} --debug