Make Jenkins jobs workable
Change-Id: I0e90aca845b51a270d171dcbc9716891c77efae9
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ config.yaml
|
||||
*.vdi
|
||||
.tox
|
||||
doc/build
|
||||
*egg*
|
||||
|
10
test-requirements.txt
Normal file
10
test-requirements.txt
Normal 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
2
tests/hosts.test
Normal file
@@ -0,0 +1,2 @@
|
||||
[local]
|
||||
127.0.0.1
|
20
tox.ini
20
tox.ini
@@ -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*
|
||||
|
Reference in New Issue
Block a user