-
Notifications
You must be signed in to change notification settings - Fork 157
/
tox.ini
75 lines (64 loc) · 1.51 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
[tox]
envlist =
# python versions
py{27,34,35,36,37,py3}
# run pytest
test
# publish to codecov.io
codecov
# performance testing
performance
performance-pure
# skip tox sdist building to control what we are installing
skipsdist = True
# skip missing interpreters
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
# Default test environment
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
pypy3: pypy3
setenv =
MPLBACKEND = Agg
passenv =
codecov: TOXENV
codecov: CI
codecov: TRAVIS TRAVIS_*
deps =
-rrequirements.txt
test: pytest>=3.6.0
test: pytest-cov>=2.6.0
codecov: codecov>=1.4.0
commands =
python setup.py develop
py{27,34,35,36,37}: python setup.py build_ext --inplace --use-cython
py{27,34,35,36,37}: python -c "from geomdl.core import NURBS; ns = NURBS.Surface(); print(ns.name)"
# Run pytest
[testenv:test]
basepython =
python
commands_post =
python setup.py test -a "--cov=./"
# Publish to codecov.io
[testenv:codecov]
basepython =
python
commands =
codecov -e TOXENV
# Performance testing (only pure Python)
[testenv:performance]
basepython =
python
commands_post =
python .travisci/curve_sequential_pure.py
# Performance testing (Cython-compiled and pure Python)
[testenv:performance-full]
basepython =
python
commands_post =
python .travisci/curve_sequential_pure.py
python .travisci/curve_sequential_core.py