-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
36 lines (30 loc) · 794 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
[tox]
envlist = py2,py3,pypy,pypy3
skipsdist=true
skip_missing_interpreters=False
[testenv]
whitelist_externals =
rm
bash
commands =
rm -rf dist
python setup.py bdist_wheel
/bin/bash -c 'pip install dist/*.whl'
pylint setup.py
bash -c "source toxenv.sh; pylint ./src/$PROJECT_NAME"
bash -c "source toxenv.sh; pytest ./tests -v --cov-report html --cov $PROJECT_NAME --no-cov-on-fail"
[testenv:py2]
deps = -rtests/python2.reqs
[testenv:pypy]
deps = -rtests/python2.reqs
[testenv:py3]
deps = -rtests/python3.reqs
[testenv:pypy3]
deps = -rtests/python3.reqs
[testenv:py3-docs]
deps = -rtests/python3.reqs
whitelist_externals =
bash
commands =
bash -c "source toxenv.sh; sphinx-apidoc -f -e -o ./docs/ src/$PROJECT_NAME"
python setup.py build_sphinx