From a5138a36a26b7f737594562b63ec2c67aa90bff8 Mon Sep 17 00:00:00 2001 From: Swann Croiset Date: Wed, 23 Sep 2015 11:14:10 +0200 Subject: [PATCH] Fixes bundler working directory path This prevents to create .gem/ directories inside each Puppet modules and really stores all gems in .bundled/ directory. The plugin building fails when .gem/ directories are present. Change-Id: I65847de308bd11e71a1710c1ffc41ea766fdbdc1 --- deployment_scripts/puppet/manifests/.gitignore | 1 + .../puppet/modules/heka/.gitignore | 1 + .../puppet/modules/lma_collector/.gitignore | 1 + tox.ini | 17 ++++++++--------- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/deployment_scripts/puppet/manifests/.gitignore b/deployment_scripts/puppet/manifests/.gitignore index b844b143d..25e75852c 100644 --- a/deployment_scripts/puppet/manifests/.gitignore +++ b/deployment_scripts/puppet/manifests/.gitignore @@ -1 +1,2 @@ Gemfile.lock +.bundle diff --git a/deployment_scripts/puppet/modules/heka/.gitignore b/deployment_scripts/puppet/modules/heka/.gitignore index afce13850..b766602a0 100644 --- a/deployment_scripts/puppet/modules/heka/.gitignore +++ b/deployment_scripts/puppet/modules/heka/.gitignore @@ -1,3 +1,4 @@ spec/fixtures/modules/* spec/fixtures/manifests/* Gemfile.lock +.bundle diff --git a/deployment_scripts/puppet/modules/lma_collector/.gitignore b/deployment_scripts/puppet/modules/lma_collector/.gitignore index 9587fdc15..cf17e0370 100644 --- a/deployment_scripts/puppet/modules/lma_collector/.gitignore +++ b/deployment_scripts/puppet/modules/lma_collector/.gitignore @@ -2,3 +2,4 @@ spec/fixtures/modules/* spec/fixtures/manifests/* Gemfile.lock tests/lua/mocks/date_time.lua +.bundle diff --git a/tox.ini b/tox.ini index 0bb7de8aa..c0bf5d10b 100644 --- a/tox.ini +++ b/tox.ini @@ -11,11 +11,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:heka] @@ -24,11 +22,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:lma_collector] @@ -37,11 +33,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] @@ -51,8 +45,13 @@ commands = make clean html SPHINXOPTS=-W [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