Add tox environments to build the plugin and docs

Change-Id: I59d25215522e177015dad99606882c008a361b23
This commit is contained in:
Swann Croiset 2015-11-23 13:17:24 +01:00
parent 55cbcb8cd0
commit f183511d3a
4 changed files with 36 additions and 9 deletions

View File

@ -38,10 +38,11 @@ If the Zabbix UI reports 'Zabbix server is not running', check the following:
# crm resource start p_zabbix-server
#. If after the previous commands the zabbix-server is still down and you didn't
find any explanation in the logs, try to increase the log level::
find any explanation in the logs, try to increase the log level::
# sed -i 's/DebugLevel=3/DebugLevel=4/' /etc/zabbix/zabbix_server.conf
# crm resource restart p_zabbix-server
# sed -i 's/DebugLevel=3/DebugLevel=4/' /etc/zabbix/zabbix_server.conf
# crm resource restart p_zabbix-server
Zabbix agents
-------------
@ -58,8 +59,8 @@ page: configuration > hosts).
# /etc/init.d/zabbix-agent restart
#. If the zabbix-agent is still down or doesn't report any data try the following
command to validate the agent's configuration. This command should display all
data that agent is configured to collect, if not the command should display
an explicit error with regard to the configuration::
command to validate the agent's configuration. This command should display all
data that agent is configured to collect, if not the command should display
an explicit error with regard to the configuration::
# zabbix_agentd -p
# zabbix_agentd -p

View File

2
test-requirements.txt Normal file
View File

@ -0,0 +1,2 @@
Sphinx
fuel-plugin-builder>=2.0.4

28
tox.ini
View File

@ -1,9 +1,9 @@
[tox]
envlist = manifests,plugin_zabbix
envlist = manifests,plugin_zabbix,build_plugin,docs,qa_docs
skipsdist = True
[testenv]
#deps = -r{toxinidir}/test-requirements.txt
deps = -r{toxinidir}/test-requirements.txt
passenv = HOME
[testenv:manifests]
@ -25,3 +25,27 @@ commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[testenv:build_plugin]
changedir = {toxinidir}
whitelist_externals=
fpb
rm
commands =
rm -rf .build
rm -rf repositories/ubuntu/*.deb
rm -rf repositories/centos/*.rpm
fpb --check {toxinidir} --debug
fpb --build {toxinidir} --debug
[testenv:docs]
changedir = {toxinidir}/doc/plugin-guide
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