-
Notifications
You must be signed in to change notification settings - Fork 16
/
tox.ini
114 lines (99 loc) · 2.54 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[tox]
envlist = {test}-{py27,py35,py36}
[testenv]
install_command=pip install {packages}
deps= -rtest_requirements.txt
passenv=HOMEPATH
NUMBER_OF_PROCESSORS
HOME
ON_TRAVIS
DISTUTILS_USE_SDK
MSSdk
INCLUDE
LIB
APPVEYOR
MPLBACKEND
[testenv:test-py27]
basepython={env:PYTHON_EXE:python2.7}
deps = -rtest_requirements.txt
mock
commands =
MTfit --detail
py.test -rs src/MTfit/tests --log-level=WARNING --cov=src/MTfit --html=reports/unit-py27.html --self-contained-html --cov-report html:reports/coverage-py27
setenv = MTFIT_TEST_PLOT_DIR = reports/plots/py27
[testenv:test-py35]
basepython={env:PYTHON_EXE:python3.5}
commands =
MTfit --detail
py.test -rs src/MTfit/tests --log-level=WARNING --cov=src/MTfit --html=reports/unit-py35.html --self-contained-html --cov-report html:reports/coverage-py35
setenv = MTFIT_TEST_PLOT_DIR = reports/plots/py35
[testenv:test-py36]
basepython={env:PYTHON_EXE:python3.6}
commands =
MTfit --detail
py.test -rs src/MTfit/tests --log-level=WARNING --cov=src/MTfit --html=reports/unit-py36.html --self-contained-html --cov-report html:reports/coverage-py36
setenv = MTFIT_TEST_PLOT_DIR = reports/plots/py36
[testenv:lint-flake8]
deps = -rtest_requirements.txt
flake8
commands =
MTfit --detail
python -m flake8 src/
[testenv:lint-check]
deps = -rtest_requirements.txt
pipenv
commands =
MTfit --detail
pipenv check
[testenv:docs]
deps= -rtest_requirements.txt
sphinx
sphinx_rtd_theme
commands =
MTfit --detail
python build_docs.py
[testenv:examples-py27]
basepython=python2.7
changedir=./examples
commands =
MTfit --detail
py.test -vvv --capture=no -rs test_examples.py
[testenv:examples-py36]
basepython=python3.6
changedir=./examples
commands =
MTfit --detail
py.test -vvv --capture=no -rs test_examples.py
[testenv:examples-py35]
basepython=python3.5
changedir=./examples
commands =
MTfit --detail
py.test -vvv --capture=no -rs test_examples.py
deps= -rtest_requirements.txt
[testenv:gh-pages]
deps= -rtest_requirements.txt
sphinx
sphinx_rtd_theme
gitpython
commands =
MTfit --detail
python build_docs.py True
[testenv:build-*]
deps= -rtest_requirements.txt
wheel
[testenv:build-py27]
basepython = python2.7
commands =
MTfit --detail
python setup.py bdist_wheel
[testenv:build-py35]
basepython = python3.5
commands =
MTfit --detail
python setup.py bdist_wheel
[testenv:build-py36]
basepython = python3.6
commands =
MTfit --detail
python setup.py bdist_wheel