-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
73 lines (66 loc) · 1.52 KB
/
tox.ini
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
[tox]
envlist =
py26,
py27,
py33,
py34,
py35,
[testenv]
passenv = CI TRAVIS*
setenv =
PASSACRE_LIBRARY_TESTING_ONLY=yes
TOX_ENVNAME = {envname}
install_command =
pip install {opts} -f passacre-backend/build {packages}
deps =
pytest
pytest-cov
passacre-backend
extras = yaml,clipboard
commands =
py.test --cov={envsitepackagesdir}/passacre --cov-report=html --cov-report=xml -ra {posargs} {envsitepackagesdir}/passacre
[testenv:cmake-backend]
basepython = python
skip_install = True
deps =
setenv =
{[testenv]setenv}
CMAKE_BUILD_TYPE = Release
whitelist_externals = sh
commands =
sh -c 'mkdir -p passacre-backend/build wheelhouse && cd passacre-backend/build && cmake .. && make && cp *.whl ../../wheelhouse'
[testenv:wheels]
basepython = python
skip_install = True
setenv =
deps =
wheel
commands =
python admin/wheels.py
[testenv:rust]
basepython = python
skip_install = True
setenv =
deps =
whitelist_externals = sh
commands =
sh -c 'cd passacre-backend && cmake . && make test-prep && cargo test'
[testenv:rust-kcov]
basepython = python
skip_install = True
setenv =
deps =
whitelist_externals = sh
# This sucks, but kcov is a bit finicky about what you run through kcov, and
# this is the most reliable way I've found so far.
commands =
sh -c 'cd passacre-backend && cmake . && make test-prep && kcov --verify kcov-out target/debug/passacre-*'
[testenv:codecov]
basepython = python
skip_install = True
deps =
codecov
commands =
codecov
[flake8]
max-line-length = 119