Debian Codegraph @

tox.ini

raw symbols SCIP
1 # Tox (http://tox.testrun.org/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
5
6 [global]
7 src =
8 puresasl
9 tests
10 setup.py
11
12 [tox]
13 envlist = py26,py27,py33,py34,py35,py36,pep8
14 skipsdist = true
15 skip_install = true
16 usedevelop = false
17
18 ###########################
19 # Default testenv
20 ###########################
21
22 [testenv]
23 basepython =
24 py26: python2.6
25 py27: python2.7
26 py33: python3.3
27 py34: python3.4
28 py35: python3.5
29 py36: python3.6
30 passenv =
31 # See https://github.com/codecov/example-python#testing-with-tox
32 codecov: CI TRAVIS TRAVIS_*
33 codecov: TOXENV
34 deps =
35 -r{toxinidir}/test-requirements.txt
36 install_command =
37 pip install {opts} {packages}
38 skipsdist = true
39 skip_install = true
40 usedevelop = true
41 changedir = {toxinidir}
42 commands =
43 nosetests \
44 --with-coverage \
45 --cover-package={[coverage:run]source} \
46 {posargs}
47 coverage combine --append
48
49 ###########################
50 # Run pytest
51 ###########################
52 [testenv:py26]
53
54 [testenv:py27]
55
56 [testenv:py33]
57
58 [testenv:py34]
59
60 [testenv:py35]
61
62 [testenv:py36]
63
64 ###########################
65 # Publish to Codecov
66 ###########################
67 [testenv:codecov]
68 basepython = python3
69 deps = codecov
70 skipsdist = true
71 skip_install = true
72 usedevelop = false
73 changedir = {toxinidir}
74 commands =
75 codecov -e TOXENV --required
76
77 ###########################
78 # Run PEP8
79 ###########################
80 [testenv:pep8]
81 basepython = python3
82 deps = pycodestyle
83 skipsdist = true
84 skip_install = true
85 usedevelop = false
86 changedir = {toxinidir}
87 commands=
88 pycodestyle \
89 {posargs:{[global]src}}
90
91 ###############################################################################
92 ###############################################################################
93 ###############################################################################
94 [pycodestyle]
95 show_source = false
96 show_pep8 = false
97 count = true
98
99
100 ###############################################################################
101 [coverage:run]
102 source = puresasl
103 branch = true
104 concurrency =
105 thread
106 multiprocessing