Update tox environments

- add build_plugin env
- fix the bundler working directory

Change-Id: Id586c0e0fb66319693e50eca3f9a2025623ae835
This commit is contained in:
Swann Croiset 2015-09-23 10:47:40 +02:00
parent bd0a567ad8
commit dfcba73681
6 changed files with 24 additions and 13 deletions

View File

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

View File

@ -0,0 +1 @@
.bundle

View File

@ -1,2 +1,3 @@
.bundle
spec/fixtures/modules/*
spec/fixtures/manifests/*

View File

@ -1,2 +1,3 @@
.bundle
spec/fixtures/modules/*
spec/fixtures/manifests/*

1
docs-requirements.txt Normal file
View File

@ -0,0 +1 @@
Sphinx

32
tox.ini
View File

@ -1,21 +1,16 @@
[tox]
envlist = manifests,nagios,lma_infra_alerting,docs
envlist = manifests,nagios,lma_infra_alerting,docs,build_plugin
skipsdist = True
[testenv]
deps = -r{toxinidir}/test-requirements.txt
[testenv:manifests]
deps =
changedir = {toxinidir}/deployment_scripts/puppet/manifests
whitelist_externals =
mkdir
bundle
setenv =
GEM_HOME={toxinidir}/.bundled_gems
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[testenv:nagios]
@ -24,11 +19,9 @@ changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
whitelist_externals =
mkdir
bundle
setenv =
GEM_HOME={toxinidir}/.bundled_gems
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install
bundle install --path {toxinidir}/.bundled_gems
bundle exec rake test
[testenv:lma_infra_alerting]
@ -37,15 +30,28 @@ changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
whitelist_externals =
mkdir
bundle
setenv =
GEM_HOME={toxinidir}/.bundled_gems
commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install
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