tox.ini 1.67 KB
Newer Older
1
[tox]
2
skip_missing_interpreters = True
3
envlist = clean, lint, py34, py35, py36, integration, stats
Matt Traudt's avatar
Matt Traudt committed
4
5
6

[travis]
python =
7
8
9
  3.4: lint, py34, integration
  3.5: py35, integration
  3.6: py36, integration
10

juga's avatar
juga committed
11
12
13
14
15
16
17
18
[testenv:clean]
skip_install = True
changedir={toxinidir}
deps =
   coverage
commands=
   coverage erase

19
20
21
22
23
24
[testenv:integration]
ignore_errors = True
deps = .[test]
whitelist_externals =
    tar
    bash
25
    sleep
26
    wget
27
commands =
28
29
    tar -C {envtmpdir} -vxf {toxinidir}/tests/integration/net.tar
    bash {envtmpdir}/net/start.sh
30
    bash -c "time python3 {envtmpdir}/net/wait.py {envtmpdir}/net/{auth,relay,exit}*"
31
    bash -c "python3 {toxinidir}/scripts/tools/sbws-http-server.py --port 28888 &>/dev/null &"
32
    sleep 15
33
    wget -O/dev/null http://127.0.0.1:28888/sbws.bin
34
35
    coverage run -a --rcfile={toxinidir}/.coveragerc --source=sbws -m pytest -s {toxinidir}/tests/integration -vv
    bash {envtmpdir}/net/stop.sh
36

juga's avatar
juga committed
37
38
39
40
[testenv:lint]
skip_install = True
deps = .[dev]
commands =
41
    flake8 sbws scripts tests
juga's avatar
juga committed
42
43
44
45

[testenv:stats]
skip_install = True
changedir={toxinidir}
46
deps =
47
   .[test]
juga's avatar
juga committed
48
49
50
51
52
53
54
commands=
   # nothing to combine while not using several python versions
   # coverage combine
   coverage report
   coverage html

[testenv]
55
56
install_command =
   pip install --process-dependency-links {opts} {packages}
juga's avatar
juga committed
57
58
deps = .[test]
commands =
59
   coverage run -a --rcfile={toxinidir}/.coveragerc --source=sbws -m pytest -s {toxinidir}/tests/unit -vv
Matt Traudt's avatar
Matt Traudt committed
60
61
62
63
passenv =
  TRAVIS
  TRAVIS_JOB_ID
  TRAVIS_BRANCH
juga's avatar
juga committed
64

juga's avatar
juga committed
65
66
67
68
69
70
71
72
73
74
75

[testenv:doc]
deps = .[doc]
whitelist_externals = make
changedir = docs
commands =
    make html
    # this requires build the pdf images
    # make latexpdf
    # this requires network
    # make linkcheck