Update tests to new default
Change-Id: I3b94013d779bf1b934775b4ee1cec11a94635577
This commit is contained in:
parent
7dbef661b2
commit
415a6a041e
@ -1,9 +1,9 @@
|
|||||||
- project:
|
- project:
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- openstack-tox-bashate:
|
- openstack-tox-linters:
|
||||||
voting: false
|
voting: false
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- openstack-tox-bashate:
|
- openstack-tox-linters:
|
||||||
voting: false
|
voting: false
|
||||||
|
@ -1 +1,3 @@
|
|||||||
bashate >= 0.2
|
bashate >= 0.2
|
||||||
|
PyYAML >= 3.1.0
|
||||||
|
yamllint >= 0.5.2
|
||||||
|
24
tox.ini
24
tox.ini
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = bashate,pep8
|
envlist = linters
|
||||||
minversion = 2.3
|
minversion = 2.3
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
@ -11,9 +11,21 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
OS_TEST_TIMEOUT=60
|
OS_TEST_TIMEOUT=60
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
|
||||||
[testenv:bashate]
|
[testenv:linters]
|
||||||
|
whitelist_externals = bash
|
||||||
commands =
|
commands =
|
||||||
bash -c "ls build-tools/*.sh | xargs bashate -v {posargs}"
|
bash -c "find {toxinidir} \
|
||||||
|
-not \( -type d -name .?\* -prune \) \
|
||||||
|
-type f \
|
||||||
|
-not -name \*~ \
|
||||||
|
-not -name \*.md \
|
||||||
|
-name \*.sh \
|
||||||
|
-print0 | xargs -0 bashate -v"
|
||||||
|
bash -c "find {toxinidir} \
|
||||||
|
\( -name middleware/io-monitor/recipes-common/io-monitor/io-monitor/io_monitor/test-tools/yaml/* -prune \) \
|
||||||
|
-o \( -name .tox -prune \) \
|
||||||
|
-o -type f -name '*.yaml' \
|
||||||
|
-print0 | xargs -0 yamllint"
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
usedevelop = False
|
usedevelop = False
|
||||||
@ -25,9 +37,3 @@ commands =
|
|||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:true]
|
|
||||||
# Use same environment directory as pep8 env to save space and install time
|
|
||||||
envdir = {toxworkdir}/venv
|
|
||||||
commands = true
|
|
||||||
whitelist_externals = true
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user