Only test numpy with py27 and py35.

Travis was not successfully installing numpy with python<=2.6,
python<=3.3, or PyPy.  I decided that it didn't make sense to use numpy
for all the tests, so instead I made new testing environments
specifically for numpy.
This commit is contained in:
Kale Kundert 2017-06-15 18:41:13 -07:00
parent 50769557e8
commit 5d2496862a
No known key found for this signature in database
GPG Key ID: C6238221D17CAFAE
3 changed files with 16 additions and 2 deletions

View File

@ -16,13 +16,16 @@ env:
- TOXENV=py33 - TOXENV=py33
- TOXENV=py34 - TOXENV=py34
- TOXENV=py35 - TOXENV=py35
- TOXENV=py36
- TOXENV=pypy - TOXENV=pypy
- TOXENV=py27-pexpect - TOXENV=py27-pexpect
- TOXENV=py27-xdist - TOXENV=py27-xdist
- TOXENV=py27-trial - TOXENV=py27-trial
- TOXENV=py27-numpy
- TOXENV=py35-pexpect - TOXENV=py35-pexpect
- TOXENV=py35-xdist - TOXENV=py35-xdist
- TOXENV=py35-trial - TOXENV=py35-trial
- TOXENV=py35-numpy
- TOXENV=py27-nobyte - TOXENV=py27-nobyte
- TOXENV=doctesting - TOXENV=doctesting
- TOXENV=freeze - TOXENV=freeze

View File

@ -20,9 +20,11 @@ environment:
- TOXENV: "py27-pexpect" - TOXENV: "py27-pexpect"
- TOXENV: "py27-xdist" - TOXENV: "py27-xdist"
- TOXENV: "py27-trial" - TOXENV: "py27-trial"
- TOXENV: "py27-numpy"
- TOXENV: "py35-pexpect" - TOXENV: "py35-pexpect"
- TOXENV: "py35-xdist" - TOXENV: "py35-xdist"
- TOXENV: "py35-trial" - TOXENV: "py35-trial"
- TOXENV: "py35-numpy"
- TOXENV: "py27-nobyte" - TOXENV: "py27-nobyte"
- TOXENV: "doctesting" - TOXENV: "doctesting"
- TOXENV: "freeze" - TOXENV: "freeze"

13
tox.ini
View File

@ -12,7 +12,7 @@ envlist=
py36 py36
py37 py37
pypy pypy
{py27,py35}-{pexpect,xdist,trial} {py27,py35}-{pexpect,xdist,trial,numpy}
py27-nobyte py27-nobyte
doctesting doctesting
freeze freeze
@ -26,7 +26,6 @@ deps=
nose nose
mock mock
requests requests
numpy
[testenv:py26] [testenv:py26]
commands= pytest --lsof -rfsxX {posargs:testing} commands= pytest --lsof -rfsxX {posargs:testing}
@ -111,6 +110,16 @@ deps={[testenv:py27-trial]deps}
commands= commands=
pytest -ra {posargs:testing/test_unittest.py} pytest -ra {posargs:testing/test_unittest.py}
[testenv:py27-numpy]
deps=numpy
commands=
pytest -rfsxX {posargs:testing/python/approx.py}
[testenv:py35-numpy]
deps=numpy
commands=
pytest -rfsxX {posargs:testing/python/approx.py}
[testenv:docs] [testenv:docs]
skipsdist=True skipsdist=True
usedevelop=True usedevelop=True