-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathtox.ini
44 lines (39 loc) · 1.59 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[tox]
envlist = lint
skipsdist = True
# NOTES:
# * We avoid the new dependency resolver by pinning pip < 20.3, see
# https://github.com/pypa/pip/issues/9187
# * Pinning dependencies requires tox >= 3.2.0, see
# https://tox.readthedocs.io/en/latest/config.html#conf-requires
# * It is also necessary to pin virtualenv as a newer virtualenv would still
# lead to fetching the latest pip in the func* tox targets, see
# https://stackoverflow.com/a/38133283
requires = pip < 20.3
virtualenv < 20.0
# NOTE: https://wiki.canonical.com/engineering/OpenStack/InstallLatestToxOnOsci
minversion = 3.2.0
[testenv]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
install_command =
pip install {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
passenv = TERM HOME
whitelist_externals = bash
[testenv:lint]
commands = flake8 -v tools/update-bundle-versions
bash -ex tools/validate_bundles_yaml_load.sh
bash -ex tools/validate_bundles.sh
# bash -ex tools/validate_bundles_diff.sh # Test has been broken in master for some time, and needs to be rewritten.
bash -ex tools/validate_tools.sh
[testenv:lint-light]
commands = flake8 -v tools/update-bundle-versions
bash -ex tools/validate_bundles_yaml_load.sh
# bash -ex tools/validate_bundles_diff.sh # Test has been broken in master for some time, and needs to be re-written.
bash -ex tools/validate_tools.sh
[testenv:sync-tools]
commands = bash -ex tools/sync_tools.sh
[testenv:update-stable-bundles]
commands = bash -ex tools/update_stable_bundles.sh