Update tox environments
- add build_plugin env - fix the bundler working directory Change-Id: Id586c0e0fb66319693e50eca3f9a2025623ae835
This commit is contained in:
parent
bd0a567ad8
commit
dfcba73681
1
build_plugin-requirements.txt
Normal file
1
build_plugin-requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
fuel-plugin-builder>=2.0.4
|
1
deployment_scripts/puppet/manifests/.gitignore
vendored
Normal file
1
deployment_scripts/puppet/manifests/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.bundle
|
@ -1,2 +1,3 @@
|
||||
.bundle
|
||||
spec/fixtures/modules/*
|
||||
spec/fixtures/manifests/*
|
||||
|
@ -1,2 +1,3 @@
|
||||
.bundle
|
||||
spec/fixtures/modules/*
|
||||
spec/fixtures/manifests/*
|
||||
|
1
docs-requirements.txt
Normal file
1
docs-requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
Sphinx
|
32
tox.ini
32
tox.ini
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user