summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2016-02-10 16:47:05 -0500
committerPaul Belanger <pabelanger@redhat.com>2016-02-10 16:47:22 -0500
commit8a1be893c266acb7a3abe7830f47bc37fd408bfa (patch)
tree0312c63ae06c47c9cac5942c02684048765f0cd6
parentb16717461c16c85a3e135801275cdea1b591ea84 (diff)
Add ansible-role-jenkins-plugins to OpenStack
Change-Id: Ib27d78a1e2d0e1cb0dfb8ee215fa1e639221bfb9 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Notes
Notes (review): Code-Review+2: Paul Belanger <pabelanger@redhat.com> Workflow+1: Paul Belanger <pabelanger@redhat.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 10 Feb 2016 23:47:54 +0000 Reviewed-on: https://review.openstack.org/278650 Project: openstack/ansible-role-jenkins-plugins Branch: refs/heads/master
-rw-r--r--.gitreview4
-rw-r--r--tox.ini38
2 files changed, 26 insertions, 16 deletions
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 0000000..e1b0b27
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,4 @@
1[gerrit]
2host=review.openstack.org
3port=29418
4project=openstack/ansible-role-jenkins-plugins.git
diff --git a/tox.ini b/tox.ini
index 23d78a3..c3add41 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,36 +1,42 @@
1[tox] 1[tox]
2minversion = 1.4.2 2minversion = 1.4.2
3envlist = ansible-lint,docs,pep8 3envlist = docs,linters
4skipsdist = True 4skipsdist = True
5 5
6[testenv] 6[testenv]
7deps = -r{toxinidir}/requirements.txt 7deps = -r{toxinidir}/requirements.txt
8 -r{toxinidir}/test-requirements.txt 8 -r{toxinidir}/test-requirements.txt
9 9
10[testenv:ansible-lint] 10[testenv:docs]
11commands = python setup.py build_sphinx
12
13[testenv:functional]
14commands =
15 ansible-playbook -i tests/inventory tests/test.yaml
16passenv = HOME
17setenv =
18 ANSIBLE_CONFIG = {toxinidir}/tests/ansible.cfg
19 PYTHONUNBUFFERED = 1
20
21[testenv:linters]
11setenv = 22setenv =
12 ANSIBLE_CONFIG = tests/ansible.cfg 23 ANSIBLE_CONFIG = tests/ansible.cfg
13whitelist_externals = bash 24whitelist_externals = bash
14commands = 25commands =
26 flake8
15 bash -c "find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \ 27 bash -c "find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
16 ansible-lint" 28 ansible-lint"
17 bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \ 29 bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \
18 ansible-playbook --syntax-check -i tests/inventory \ 30 ansible-playbook --syntax-check -i tests/inventory \
19 -e rolename=$(basename $(pwd)) > /dev/null" 31 -e rolename=$(basename $(pwd)) > /dev/null"
20 32
21[testenv:ansible-functional]
22commands =
23 ansible-playbook -i tests/inventory tests/test.yaml
24passenv = HOME
25setenv =
26 ANSIBLE_CONFIG = {toxinidir}/tests/ansible.cfg
27 PYTHONUNBUFFERED = 1
28
29[testenv:docs]
30commands = python setup.py build_sphinx
31
32[testenv:pep8]
33commands = flake8
34
35[testenv:venv] 33[testenv:venv]
36commands = {posargs} 34commands = {posargs}
35
36[flake8]
37# E123, E125 skipped as they are invalid PEP-8.
38
39show-source = True
40ignore = E123,E125
41builtins = _
42exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build