Skip to content

Commit 1cfe592

Browse files
committed
Add tox for quicker local testing
1 parent 29e8346 commit 1cfe592

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

tox.ini

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[tox]
2+
skipsdist=True
3+
skip_missing_interpreters=True
4+
envlist =
5+
py27
6+
py33
7+
py34
8+
py35
9+
py36
10+
check
11+
12+
[testenv]
13+
recreate=True
14+
basepython =
15+
py27: {env:TOXPYTHON:python2.7}
16+
py33: {env:TOXPYTHON:python3.3}
17+
py34: {env:TOXPYTHON:python3.4}
18+
py35: {env:TOXPYTHON:python3.5}
19+
py36: {env:TOXPYTHON:python3.6}
20+
check: python3.5
21+
setenv =
22+
PYTHONUNBUFFERED=True
23+
DISTUTILS_DEBUG=
24+
passenv =
25+
*
26+
commands =
27+
python --version
28+
python -c "import struct; print('ARCH: %d' % (struct.calcsize('P') * 8))"
29+
python -c "import ctypes; print('UCS%d' % ctypes.sizeof(ctypes.c_wchar))"
30+
python setup.py bdist_wheel
31+
pip install --no-index --find-links=dist/ pythonnet
32+
{posargs:python src\tests\runtests.py}
33+
34+
[testenv:check]
35+
ignore_errors=True
36+
deps =
37+
check-manifest
38+
flake8
39+
commands =
40+
check-manifest {toxinidir}
41+
flake8 src setup.py
42+
python setup.py check --strict --metadata

0 commit comments

Comments
 (0)