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