summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 87f64768873da4ebb917a5fbbfd248f199dfd26c (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
[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

[testenv:pep8]
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs}

[testenv:functional]
deps =
    rtyaml
    ddt
    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}/cns-libs
commands =
    find . -type f -name "*.py[c|o]" -delete
    {posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"}

[testenv:venv]
commands = {posargs}

[flake8]
exclude = .git,.tox,.venv,*egg,docs,examples,templates