summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 33fa20f2d2c6a3ea8f26452df2a33c4395ebc091 (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
[tox]
envlist = py27

[testenv]
commands = py.test --cov-report=html \
                   --cov-report=term \
		   --cov=leap.bitmask \
		   --pep8 {posargs}
deps =
    mock
    pep8
    pytest
    pytest-pep8
    pytest-cov
    setuptools-trial
    gnupg
    leap.soledad.client
    -e.
setenv =
    HOME=/tmp

[testenv:py27-dev]
# This environment assumes developer has checked out
# leap_common and soledad repos in the parent folder.
deps =
    mock
    pep8
    pytest
    pytest-pep8
    pytest-cov
    setuptools-trial
    gnupg
    -e../leap_common
    -e../soledad/common
    -e../soledad/client
    -e.

[testenv:py27-bench]
commands = py.test {posargs}
changedir = bench
deps =
    gnupg
    pytest
    pytest-benchmark
    # need the next 2 for graphs, but new version changed api a bit and is
    # incompatible with pytest-benchmark, so we pin version <2.1
    # (https://github.com/ionelmc/pytest-benchmark/issues/50).
    pygal<2.1
    pygaljs
setenv =
    HOME=/tmp
    TERM=xterm