summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 5bdc8982233f478a784b8958771e5bb9396d3be0 (plain)
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
[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+git://github.com/loadtheaccumulator/glusto.git \
        "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-gluster&subdirectory=glustolibs-gluster" \
        "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-io&subdirectory=glustolibs-io" \
        "git+git://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 \
        simplejson \
        mock \
        rtyaml \
        ddt \
        pyvmomi \
        pytest-custom-exit-code \
        prometheus_client>=0.4.2 \
        git+git://github.com/loadtheaccumulator/glusto.git@python3_port4 \
        "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-gluster&subdirectory=glustolibs-gluster" \
        "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-io&subdirectory=glustolibs-io" \
        "git+git://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