d56031440e
tox >= 2.0 only passes the PATH variable to the test environment but the Puppet tests expect the HOME variable to be defined. Change-Id: I41f95a4a7616f3c48897bdb2aa547b278337006b
61 lines
1.4 KiB
INI
61 lines
1.4 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 =
|
|
fpb
|
|
rm
|
|
find
|
|
commands =
|
|
rm -rf .build
|
|
rm -rf repositories/ubuntu/*.deb
|
|
rm -rf repositories/centos/*.rpm
|
|
fpb --check {toxinidir} --debug
|
|
fpb --build {toxinidir} --debug
|