blob: ca7c11f233484103cde54c6e85228ff4fdcdc1b4 (
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
99
100
101
102
103
|
[tox]
envlist = py27
skipsdist = True
[testenv]
basepython = python2.7
commands = {env:CHECK_SQLCIPHER}
py.test -x \
--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
# used by benchmarks
psutil
pytest-benchmark
elasticsearch==5.5.1
certifi
# used by e2e tests
srp
# force six version to avoid breaking pgpy - https://github.com/SecurityInnovation/PGPy/issues/217
six==1.10.0
pgpy
# install soledad from current tree
-e.[client]
-e.[server]
setenv =
HOME=/tmp
TERM=xterm
XDG_CACHE_HOME=./.cache/
CHECK_SQLCIPHER={toxinidir}/scripts/testing/ensure-pysqlcipher-has-usleep.sh
install_command = pip install {opts} {packages}
[testenv:py34]
basepython = python3.4
commands =
py.test \
--cov-report=html \
--cov-report=term \
--cov=leap.soledad \
{posargs}
usedevelop = True
deps = {[testenv]deps}
setenv =
HOME=/tmp
TERM=xterm
install_command = pip3 install {opts} {packages}
[testenv:code-check]
deps =
pycodestyle
flake8
commands =
pycodestyle
flake8
[testenv:e2e]
deps =
{[testenv]deps}
passenv = INVITE_CODE
commands =
py.test --subdir=e2e --soledad-server-url=https://giraffe.cdev.bitmask.net:2323 {posargs}
[testenv:benchmark-time-cpu]
usedevelop = True
deps = {[testenv]deps}
commands = {env:CHECK_SQLCIPHER}
py.test --subdir=benchmarks {posargs}
passenv = HOST_HOSTNAME
[testenv:benchmark-memory]
usedevelop = True
deps = {[testenv]deps}
commands = {env:CHECK_SQLCIPHER}
py.test --subdir=benchmarks --watch-memory {posargs}
passenv = HOST_HOSTNAME
[testenv:responsiveness]
usedevelop = True
deps = {[testenv]deps}
commands = {env:CHECK_SQLCIPHER}
py.test --subdir=responsiveness {posargs}
passenv = HOST_HOSTNAME
[testenv:parallel]
deps =
{[testenv]deps}
pytest-xdist
commands = {env:CHECK_SQLCIPHER}
py.test {posargs} -n 4
|