-
Notifications
You must be signed in to change notification settings - Fork 26
/
tox.ini
92 lines (80 loc) · 3.45 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This is a templated file and must be kept up-to-date with the original
# from upstream at https://github.com/canonical/se-tooling-ci-common.
[tox]
skipsdist = True
envlist = bashate,pep8,pylint
minversion = 3.18.0
[flake8]
# H106: Don't put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
# H204: Use assert(Not)Equal to check for equality
# H205: Use assert(Greater|Less)(Equal) for comparison
# H904: Delay string interpolations at logging calls
enable-extensions = H106,H203,H204,H205,H904
show-source = true
exclude =
import-order-style = pep8
[testenv]
basepython = {env:TOX_PYTHON:python3}
pyfiles =
{toxinidir}/openstack/tools/func_test_tools
{toxinidir}/tools/parse-bundle.py
{toxinidir}/tools/juju-bundle-applications.py
bashfiles =
# find -name configure| grep -v .git| sed -rn 's,^.,{toxinidir},p'
{toxinidir}/cos/configure
{toxinidir}/tools/juju-lnav
# find tools -name \*.sh
{toxinidir}/tools/vault-unseal-and-authorise.sh
{toxinidir}/tools/mongo-access.sh
{toxinidir}/tools/lint-git-messages.sh
{toxinidir}/tools/model-poweron.sh
{toxinidir}/tools/stack-manager/mark-model-vms-unmanaged.sh
{toxinidir}/tools/stack-manager/show-all.sh
{toxinidir}/tools/stack-manager/common.sh
{toxinidir}/tools/stack-manager/show-unmanaged.sh
{toxinidir}/tools/stack-manager/mark-vms-unmanaged.sh
{toxinidir}/tools/stack-manager/mark-vms-managed.sh
{toxinidir}/tools/stack-manager/mark-model-vms-managed.sh
{toxinidir}/tools/stack-manager/show-managed.sh
{toxinidir}/tools/model-poweroff.sh
{toxinidir}/common/generate_bundle_base
# find common -name \*.sh
{toxinidir}/common/ch_channel_map/test-channel-map.sh
{toxinidir}/common/ch_channel_map/test-all.sh
{toxinidir}/common/generate-bundle.sh
{toxinidir}/openstack/novarc
# find openstack/tools/ -name \*.sh| xargs -I{} echo " {toxinidir}/{}"
{toxinidir}/openstack/tools/func_test_tools/manual_functests_runner.sh
{toxinidir}/openstack/tools/func_test_tools/common.sh
{toxinidir}/openstack/tools/create_octavia_lb.sh
{toxinidir}/openstack/tools/float_all.sh
{toxinidir}/openstack/tools/vault-unseal-and-authorise.sh
{toxinidir}/openstack/tools/install_local_ca.sh
{toxinidir}/openstack/tools/create_nova_az_aggregates.sh
{toxinidir}/openstack/tools/enable_samltestid.sh
{toxinidir}/openstack/tools/delete_project.sh
{toxinidir}/openstack/tools/charmed_openstack_functest_runner.sh
{toxinidir}/openstack/tools/create_ipv4_octavia.sh
{toxinidir}/openstack/tools/configure_octavia.sh
{toxinidir}/openstack/tools/create_sg_log.sh
{toxinidir}/openstack/tools/setup_tempest.sh
{toxinidir}/openstack/tools/instance_launch.sh
{toxinidir}/openstack/tools/create_project.sh
{toxinidir}/openstack/tools/allocate_vips.sh
{toxinidir}/openstack/tools/upload_octavia_amphora_image.sh
{toxinidir}/openstack/tools/sec_groups.sh
{toxinidir}/openstack/tools/create-microceph-vm.sh
{toxinidir}/openstack/tools/upload_image.sh
{toxinidir}/openstack/tools/openstack_regression_tests_runner.sh
setenv =
PYTHONHASHSEED=0
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8 -v {posargs:{[testenv]pyfiles}}
[testenv:pylint]
commands = pylint -v --rcfile={toxinidir}/pylintrc {posargs:{[testenv]pyfiles}}
[testenv:bashate]
commands = bashate --ignore E006 --verbose {posargs:{[testenv]bashfiles}}