Add a tox environment to build the plugin

This change also updates the various .gitignore files to discard the
files and directories created by the fpb script.

Change-Id: Ic909e787eaf5088a3f60098ea7ed2b92ccada8f7
This commit is contained in:
Simon Pasquier 2015-09-08 17:32:19 +02:00
parent e21bec1b98
commit e20ea23f6f
6 changed files with 19 additions and 2 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
.bundled_gems/
.build/
lma_collector*rpm

View File

@ -0,0 +1,3 @@
*/
!heka/
!lma_collector/

1
repositories/centos/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.rpm

1
repositories/ubuntu/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.deb

View File

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

13
tox.ini
View File

@ -1,7 +1,10 @@
[tox]
envlist = heka,lma_collector,docs
envlist = heka,lma_collector,docs,build_plugin
skipsdist = True
[testenv]
deps = -r{toxinidir}/test-requirements.txt
[testenv:heka]
deps =
changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
@ -29,8 +32,14 @@ commands =
bundle exec rake test
[testenv:docs]
deps = -r{toxinidir}/test-requirements.txt
changedir = {toxinidir}/doc
whitelist_externals = make
commands =
make clean html SPHINXOPTS=-W
[testenv:build_plugin]
whitelist_externals =
fpb
commands =
fpb --check {toxinidir} --debug
fpb --build {toxinidir} --debug