Make Jenkins jobs workable

Change-Id: I0e90aca845b51a270d171dcbc9716891c77efae9
This commit is contained in:
Christian Berendt
2014-12-10 18:24:56 +01:00
parent fd533dba7e
commit 02a4c88375
4 changed files with 19 additions and 14 deletions

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@ config.yaml
*.vdi
.tox
doc/build
*egg*

10
test-requirements.txt Normal file
View File

@@ -0,0 +1,10 @@
PyYAML
Pygments
ansible
bashate
doc8
docutils
flake8
oslosphinx
pbr>=0.6,!=0.7,<1.0
sphinx>=1.1.2,<1.2

2
tests/hosts.test Normal file
View File

@@ -0,0 +1,2 @@
[local]
127.0.0.1

20
tox.ini
View File

@@ -5,27 +5,19 @@ skipsdist = True
[testenv]
usedevelop = False
deps = -r{toxinidir}/test-requirements.txt
install_command = pip install {opts} {packages}
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps =
Pygments
docutils
sphinx>=1.1.2,<1.2
pbr>=0.6,!=0.7,<1.0
oslosphinx
commands = python setup.py build_sphinx
[testenv:lint]
whitelist_externals = bash
deps =
ansible
bashate
doc8
flake8
PyYAML
commands =
ansible-playbook --syntax-check playbook.yaml
ansible-playbook --syntax-check -i tests/hosts.test playbook.yaml
bash -c "find {toxinidir} \
\( -wholename \*/files/\*.sh -or \
-wholename \*/scripts/\*.sh \) -print0 | \
@@ -36,4 +28,4 @@ commands =
[flake8]
show-source = True
exclude=.venv,.git,.tox
exclude=.venv,.git,.tox,*egg*