forked from ccpem/mrcfile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
38 lines (35 loc) · 809 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
37
38
# Config file for tox
[tox]
envlist = {py2,py3}-numpy{1.11,1.12}, docs
# 2x2 matrix of test environments
[testenv]
basepython =
py2: python2.7
py3: python3
osx_py2: python2.7
osx_py3: python3
deps =
numpy1.11: numpy >= 1.11.0, < 1.12.0
numpy1.12: numpy >= 1.12.0
commands = python -m unittest tests
# Test html build and doctests
[testenv:docs]
basepython = python3
changedir = docs
deps =
sphinx
sphinx_rtd_theme
numpy
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build -W -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/doctest
# Setup for Travis build
[travis]
os =
linux: {py2,py3}-numpy{1.11,1.12}, docs
osx: osx_{py2,py3}-numpy{1.11,1.12}
python =
2.7: py2
3.4: py3
3.5: py3, docs
3.6: py3