-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
65 lines (59 loc) · 2.15 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
[tox]
minversion = 2.0
skipsdist = True
envlist = pep8
[testenv]
basepython = python2.7
setenv = VIRTUAL_ENV={envdir}
whitelist_externals = *
commands =
find . -type f -name "*.py[c|o]" -delete
python -m pip install --upgrade pip>=9.0.0 setuptools wheel
[testenv:pep8]
commands =
{[testenv]commands}
pip install -r{toxinidir}/test-requirements.txt
flake8 {posargs}
[testenv:functional]
commands =
{[testenv]commands}
pip install \
simplejson \
mock \
rtyaml \
ddt \
pyvmomi \
pytest-custom-exit-code \
prometheus_client>=0.4.2 \
git+https://github.com/loadtheaccumulator/glusto.git \
"git+https://github.com/gluster/glusto-tests.git#egg=glustolibs-gluster&subdirectory=glustolibs-gluster" \
"git+https://github.com/gluster/glusto-tests.git#egg=glustolibs-io&subdirectory=glustolibs-io" \
"git+https://github.com/gluster/glusto-tests.git#egg=glustolibs-misc&subdirectory=glustolibs-misc" \
--editable=file:///{toxinidir}/openshift-storage-libs
{posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"}
[testenv:functional3]
basepython = python3
commands =
find . -type f -name "*.py[c|o]" -delete
python3 -m pip install --upgrade pip>=9.0.0 setuptools wheel
pip3 install \
pytest>=5.4.2 \
pyyaml==5.4.1 \
simplejson \
mock \
rtyaml \
ddt \
pyvmomi \
pytest-custom-exit-code \
prometheus_client>=0.4.2 \
git+https://github.com/loadtheaccumulator/glusto.git@python3_port4 \
"git+https://github.com/gluster/glusto-tests.git#egg=glustolibs-gluster&subdirectory=glustolibs-gluster" \
"git+https://github.com/gluster/glusto-tests.git#egg=glustolibs-io&subdirectory=glustolibs-io" \
"git+https://github.com/gluster/glusto-tests.git#egg=glustolibs-misc&subdirectory=glustolibs-misc" \
--editable=file:///{toxinidir}/openshift-storage-libs
{posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"}
[testenv:venv]
commands = {posargs}
[flake8]
ignore = W503
exclude = .git,.tox,.venv,*egg,docs,examples,templates