From 26ab83e9aa2cc9e451722cbffd434aff686ea72f Mon Sep 17 00:00:00 2001 From: Stephen Balukoff Date: Thu, 8 Sep 2016 18:11:36 -0700 Subject: [PATCH] Add tox 'specs' test to pep8 environment It turns out the gate doesn't actually use tox for the docs test, so in order to catch errors in specs, this commit moves the tox specs testing to the pep8 environment, where the gate actually does use tox for the test. Change-Id: I660d360eed5b109c85d7ba73d421d3973c96c452 --- tox.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 778576eeb5..c2b83d9323 100644 --- a/tox.ini +++ b/tox.ini @@ -42,12 +42,13 @@ commands = flake8 CONSTITUTION.rst HACKING.rst README.rst # Run security linter bandit -r octavia -ll -ii -x octavia/tests + # Make sure specs follow our template + find . -type f -name "*.pyc" -delete + python -m unittest specs-tests.test_titles [testenv:docs] commands = python setup.py build_sphinx - find . -type f -name "*.pyc" -delete - python -m unittest specs-tests.test_titles [testenv:venv] commands = {posargs}