14 Commits

Author SHA1 Message Date
qingszhao
4c88f902c8 change default python 3 env in tox to 3.5
Change-Id: I71ca6994abfa7d3c1e84686c83d8471e200cf640
2018-06-15 08:33:19 +08:00
qingszhao
3e4f2e5ee3 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I0d7c93b0c7e48dd86f3e1591596ca6e10caff196
2018-06-12 00:41:17 +08:00
Paul Belanger
d745eb483f Allow --testr-args for tox -ecover
This allows the user to run code coverage on specific tests.

Change-Id: I29ed5c320418c82e2bc79b0a32fbea9a81be5a28
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-23 17:20:22 -04:00
Paul Belanger
4e643e5d06 Replace oslo_config dependency with argparse
This is for the same reasoning as oslo_log. We don't want to depending
on OpenStack libraries.

Change-Id: I34e66af578d3f4b5ac5e710554aad91524285816
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-09 10:12:57 -04:00
Paul Belanger
ead66d299d Clean up tox.ini
Leftovers from the cookie-cutter import.

Change-Id: I694104fe44a4b78214ae33a2bcc3470db397f572
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-01 14:12:24 -04:00
Paul Belanger
d35649e495 Reorder tox.ini envlist
Here we are replacing pypy with docs.  Mostly because we gate on docs
and not pypy.

Change-Id: I896e403a397b3964dcb3209cfcc84efcbe513fba
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-01 10:38:23 -04:00
Paul Belanger
103a882cbf Add caching support
Like we do with JJB, we create a md5sum of the dashboard then cache
it.  This is a simple way to determine if a yaml file has changed.

Change-Id: If7b80b84c5bbcb0d30b0325bae6b8e726bb2f41b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-29 11:34:31 -04:00
Paul Belanger
42ef61dde0 Add a slug to better track dashboards
Currently grafana will generate a slug based on the title name. For
now, we can use an existing python library to do this.  Ideally, we'll
need to make sure the slugs generated between both are kept in sync.

How hard can that be?

Also move our validation logic into parser.py, since they are closely
related.

Change-Id: Id43f51d3f9db9131c25a8130f957572344a7d8f1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-28 10:15:10 -04:00
Paul Belanger
766af4a6c5 Drop support for py26 and py33
Unless anybody has major objections, we can drop coverage for them.

Change-Id: I3337987bae825ede377d5c88d2c028b25e66dfb1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-06-08 11:49:52 -04:00
Paul Belanger
779abee654 Fix tox -ecover command
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-11 14:53:24 -04:00
Paul Belanger
4b14f334f6 Add oslo.log for logging
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-06 16:01:03 -04:00
Paul Belanger
804f133d33 Add configuration file
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-06 15:40:12 -04:00
Paul Belanger
e117767f9b Add grafana-dashboards cli client
This is the first attempt at the CLI client.  Right now, we just support the
update function, which will blindly create a dashboard in grafana with ZERO
validation.  Additionally, we blindly override any existing dashboard that has
been created.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-06 13:02:55 -04:00
Paul Belanger
f65385a578 Initial Cookiecutter Commit. 2015-05-04 13:14:07 -04:00