Change tox default targets for quick use

This change makes it so that if you call `tox` or `tox -r` you will
get a useful result as a developer running tests:

    * py27 and py34 unit tests
    * a single functional test run (using mongodb)
    * pep8

This is slightly different from what was there before which was
as above but _two_ functional test runs, with mysql and postgresql.

The goal here is to make it dead simple for someone to (as quickly
as possible) make sure that there code is okay before committing.

Change-Id: I27dcf5265dea18be541b8b2857b0a135ff22f499
This commit is contained in:
Chris Dent 2015-08-28 08:56:12 +00:00
parent a45c333658
commit 28d60c2534

View File

@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = py27,py34,py-mysql,py-pgsql,pep8
envlist = py27,py34,functional,pep8
[testenv]
deps = -r{toxinidir}/requirements.txt
@ -61,9 +61,9 @@ commands =
bash -c 'gabbi-run -x < ceilometer/tests/integration/gabbi/gabbits-live/autoscaling.yaml'
# bash -x {toxinidir}/tools/pretty_tox.sh "{posargs}"
# NOTE(chdent): The gabbi tests are also run under the primary tox
# targets. This target simply provides a target to directly run just
# gabbi tests without needing to discovery across the entire body of
# NOTE(chdent): The gabbi tests are also run under the other functional
# tox targets. This target simply provides a target to directly run just
# gabbi tests without needing to do discovery across the entire body of
# tests.
[testenv:gabbi]
setenv = OS_TEST_PATH=ceilometer/tests/functional/gabbi