blob: 5bfb8c5091da424cc50cfb6afbe84375c27abcbd (
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
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
92
93
94
95
96
97
98
|
[tox]
envlist = py27
skipsdist=True
[testenv]
basepython = python2.7
commands =
pip install -I --install-option="--bundled" pysqlcipher
py.test -x --ignore=tests/benchmarks \
--cov-report=html \
--cov-report=term \
--cov=leap.soledad \
{posargs}
usedevelop = True
deps =
coverage
pytest
pytest-cov
pytest-twisted
mock
testscenarios
setuptools-trial
pdbpp
couchdb
requests
service_identity
leap.common
# install soledad from current tree
-e../
-e../[client]
-e../[server]
setenv =
HOME=/tmp
TERM=xterm
XDG_CACHE_HOME=./.cache/
install_command = pip install {opts} {packages}
[testenv:py34]
basepython = python3.4
commands = py.test --ignore=tests/benchmarks \
--cov-report=html \
--cov-report=term \
--cov=leap.soledad \
{posargs}
usedevelop = True
deps =
coverage
pytest
pytest-cov
pytest-twisted
mock
testscenarios
setuptools-trial
couchdb
requests
service_identity
# install soledad local packages
-e../
-e../[client]
-e../[server]
setenv =
HOME=/tmp
TERM=xterm
install_command = pip3 install {opts} {packages}
[testenv:benchmark]
deps =
{[testenv]deps}
psutil
numpy
#pytest-benchmark>=3.1.0a2
git+https://github.com/ionelmc/pytest-benchmark.git@master
elasticsearch
certifi
commands =
# we must make sure that installed pysqlcipher was built with the HAVE_USLEEP
# flag, or we might have problems with concurrent db access.
./ensure-pysqlcipher-has-usleep.sh
# run benchmarks twice: once for time and cpu and a second time for memory
py.test --benchmark-only {posargs}
py.test --benchmark-only --watch-memory {posargs}
passenv = HOST_HOSTNAME
[testenv:code-check]
changedir = ..
deps =
pep8
flake8
commands =
pep8
flake8
[testenv:parallel]
deps =
{[testenv]deps}
pytest-xdist
install_command = pip install {opts} {packages}
commands = py.test --ignore=tests/benchmarks {posargs} -n 4
|