forked from mozillazg/python-pinyin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (39 loc) · 897 Bytes
/
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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py26, py27, py33, py34, py35, pypy, py2_jieba, py3_jieba, py2_snownlp, py3_env
[base]
deps =
pytest
pytest-cov
pytest-random
[jieba]
deps =
jieba
{[base]deps}
[testenv]
deps = {[base]deps}
commands = py.test --cov pypinyin tests/
[testenv:py2_jieba]
basepython = python2.7
deps =
{[jieba]deps}
[testenv:py3_jieba]
basepython = python3.4
deps =
{[jieba]deps}
[testenv:py2_snownlp]
basepython = python2.7
deps =
snownlp
{[base]deps}
[testenv:py3_env]
basepython = python3.4
deps =
{[jieba]deps}
setenv =
PYPINYIN_NO_PHRASES = true
PYPINYIN_NO_JIEBA = true
commands = py.test --cov pypinyin tests/_test_env.py