forked from quantling/pyndl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (42 loc) · 926 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
48
[tox]
envlist = py{35,36}-test, checkstyle, documentation
[testenv]
usedevelop = True
whitelist_externals=/bin/rm
deps =
pytest
commands =
py.test --doctest-glob "*.rst"
rm doc/data/levent.tab.gz
[testenv:checkstyle]
deps = pycodestyle
commands = pycodestyle pyndl tests
[testenv:testcov]
usedevelop = True
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
mock
pytest
pytest-runner
sh
coveralls
commands =
coverage run --source=pyndl setup.py test
coveralls
[testenv:lint]
deps = pylint>=1.7.1
commands = pylint [] --ignore-patterns='.*\.so' --rcfile=setup.cfg -j 2 pyndl tests
ignore_outcome = True
[testenv:checktypes]
deps = mypy
setenv =
MYPYPATH=./stubs/
commands = mypy --ignore-missing-imports pyndl
ignore_outcome = True
[testenv:documentation]
usedevelop = True
changedir = doc
whitelist_externals=/usr/bin/make
extras = docs
commands =
make html