-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
33 lines (28 loc) · 896 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
[tox]
envlist = py37, flake8
skipsdist = True
skip_install = True
[travis]
python =
3.7: py37
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 --ignore=E302,E305 mini_leo
[testenv]
;setenv =
; PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
; -r{toxinidir}/requirements.txt
;install_command = pip install -f {toxinidir}/dist mini_leo {packages}
changedir = {envdir}
commands =
pip install -U pip
python -c "import sys;print('\n'.join(['='*40] + sys.path +['='*40]))"
pip install -r {toxinidir}/requirements_dev.txt
pip install -f {toxinidir}/dist mini_leo
python -c "import mini_leo;assert mini_leo.test() == 42"
py.test --basetemp={envtmpdir} {toxinidir}/tests