aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-07-10 23:55:11 +0000
committerGerrit Code Review <review@openstack.org>2015-07-10 23:55:11 +0000
commit4922d6056ce0ea617df95733f48c6efeff97e8e4 (patch)
treec2c8bb451b7e4dc66779d595f7c9d01fa40f394c
parentceee4ea52113891f6e903923c57f5ff2fb8ed023 (diff)
parent160d163878f76e35f5a7148fc6b2b0419c79bb44 (diff)
downloadkolla-4922d6056ce0ea617df95733f48c6efeff97e8e4.tar.gz
kolla-4922d6056ce0ea617df95733f48c6efeff97e8e4.zip
Merge "Enable pep8 tests"
-rw-r--r--test-requirements.txt1
-rw-r--r--tox.ini17
2 files changed, 11 insertions, 7 deletions
diff --git a/test-requirements.txt b/test-requirements.txt
index f88e88f0a..269d9f566 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -1,3 +1,4 @@
+hacking>=0.10.0
oslo.log>=1.0.0 # Apache-2.0
oslotest>=1.5.1 # Apache-2.0
PyYAML
diff --git a/tox.ini b/tox.ini
index f11b0890b..00511c1d6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,27 +1,29 @@
[tox]
minversion = 1.6
skipsdist = True
-envlist = functional
+envlist = functional,pep8
[testenv]
-install_command = pip install {opts} {packages}
+install_command = pip install -U {opts} {packages}
+deps = -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
[testenv:pep8]
-deps = PyYAML
commands =
{toxinidir}/tools/validate-all-json.sh
{toxinidir}/tools/validate-all-yaml.sh
{toxinidir}/tools/validate-all-maintainer.sh
{toxinidir}/tools/validate-links.sh
{toxinidir}/tools/validate-min-env-vars.sh
+ flake8
[testenv:validate-contents]
-deps = PyYAML
commands =
{toxinidir}/tools/validate-all-json.sh
{toxinidir}/tools/validate-all-yaml.sh
{toxinidir}/tools/validate-all-maintainer.sh
{toxinidir}/tools/validate-links.sh
+ {toxinidir}/tools/validate-min-env-vars.sh
[testenv:bashate]
deps = bashate
@@ -35,7 +37,6 @@ whitelist_externals = bash
commands = bash -c tests/setup_gate.sh
[testenv:images]
-deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = find
bash
sudo
@@ -53,11 +54,13 @@ commands =
# tools/test-deploy
[testenv:functional]
-deps = -r{toxinidir}/requirements.txt
- -r{toxinidir}/test-requirements.txt
whitelist_externals = find
bash
commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
testr run ^(?!test_images).*
+
+[flake8]
+show-source = True
+exclude=.git,.tox,doc