blob: 10aeb9f38aab2036b151b7d86e89d69371e82d0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
[tox]
envlist = grafonnet-{check,fix}
skipsdist = true
[grafonnet]
deps =
-rrequirements-grafonnet.txt
[testenv:grafonnet-{check,fix}]
basepython = python3
whitelist_externals =
jsonnet
bash
description =
check: Ensure that auto-generated grafana dashboard files matches the current version
fix: generate dashboard json files from jsonnet file with latest changes
deps =
{[grafonnet]deps}
passenv = GRAFONNET_PATH
commands =
check: bash test-jsonnet.sh
fix: jsonnet -m . jsonnet/grafana_dashboards.jsonnet
|