Setup for openstack-doc-tools

Add files to allow gating via:
tox -e checkbuild
tox -e checkniceness
etc

Also, enhance .gitignore to ignore files used by gating
via openstack-doc-tools

Change-Id: I96b669e14425265a033a549264c2158e2b1afa3e
This commit is contained in:
Andreas Jaeger 2013-12-31 17:38:46 +01:00
parent d1b26e00d3
commit a9f98d343d
3 changed files with 37 additions and 3 deletions

12
.gitignore vendored
View File

@ -1,12 +1,18 @@
.DS_Store
target/
*.xpr
.bak
*.swp
.idea
*~
bk-ha-guide.xml
#Ignore Vagrant Related Files
acceptance_config.yml
boxes/*
/.vagrant
# Testenvironment
.tox
# Editors
*~
.*.swp
.bak

1
test-requirements.txt Normal file
View File

@ -0,0 +1 @@
openstack-doc-tools

27
tox.ini Normal file
View File

@ -0,0 +1,27 @@
[tox]
minversion = 1.6
envlist = checkbuild,checkdeletions,checkniceness,checksyntax
skipsdist=True
[testenv]
setenv =
VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps = -r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:checkniceness]
commands = openstack-doc-test --check-niceness
[testenv:checksyntax]
commands = openstack-doc-test --check-syntax
[testenv:checkdeletions]
commands = openstack-doc-test --check-deletions
[testenv:checkbuild]
commands = openstack-doc-test --check-build