Update tox.ini

This change fixes the bundle working directory and deletes the
temporary files before building the plugin.

Change-Id: I59fcc4706f6e04fddea7078799533c378e443b8c
This commit is contained in:
Simon Pasquier 2015-10-08 17:43:53 +02:00
parent da2557fba9
commit a451511201
3 changed files with 8 additions and 6 deletions

View File

@ -1 +1,2 @@
Gemfile.lock
.bundle

View File

@ -2,3 +2,4 @@ spec/fixtures/modules/*
spec/fixtures/manifests/*
Gemfile.lock
files/kibana/src
.bundle

12
tox.ini
View File

@ -4,6 +4,7 @@ skipsdist = True
[testenv]
deps = -r{toxinidir}/test-requirements.txt
passenv = HOME
[testenv:manifests]
deps =
@ -11,11 +12,9 @@ changedir = {toxinidir}/deployment_scripts/puppet/manifests
whitelist_externals =
bundle
mkdir
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_logging_analytics]
@ -24,11 +23,9 @@ changedir = {toxinidir}/deployment_scripts/puppet/modules/{envname}
whitelist_externals =
bundle
mkdir
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]
@ -38,8 +35,11 @@ commands =
make clean html SPHINXOPTS=-W
[testenv:build_plugin]
changedir = {toxinidir}
whitelist_externals =
fpb
rm
commands =
rm -rf .build repositories/ubuntu/*.deb repositories/centos/*.rpm
fpb --check {toxinidir} --debug
fpb --build {toxinidir} --debug