-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
41 lines (38 loc) · 905 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
# QUICK TIPS
# ==========
#
# Run all tests for all environments from the command line:
# $ tox
#
#
# Run all tests for a single environment from the command line:
# $ tox -e flake8
# or:
# $ tox -e py36
#
#
# Run only tests that match a substring expression, for a single environment:
# $ tox -e py36 -- -k expression
#
#
# In general, everything after the "--" is passed as arguments to py.test:
# $ tox -- -s -v -k expression
#
[tox]
envlist=flake8,py27,py34,py35,py36,pypy,docs
skipsdist=True
[testenv]
deps= -rrequirements_test.txt
commands=
py.test --doctest-modules residue/
coverage run --source residue -m py.test {posargs}
coverage report --show-missing
[testenv:flake8]
deps=flake8
commands=
flake8 residue/ tests/
[testenv:docs]
deps= -rrequirements_docs.txt
usedevelop=True
commands=
sphinx-build -W -b html -d docs/build/doctrees docs/source docs/build/html