Skip to content

Commit

Permalink
Only test numpy with py27 and py35.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kalekundert committed Jun 16, 2017
1 parent 5076955 commit 5d24968
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ env:
- TOXENV=py33
- TOXENV=py34
- TOXENV=py35
- TOXENV=py36
- TOXENV=pypy
- TOXENV=py27-pexpect
- TOXENV=py27-xdist
- TOXENV=py27-trial
- TOXENV=py27-numpy
- TOXENV=py35-pexpect
- TOXENV=py35-xdist
- TOXENV=py35-trial
- TOXENV=py35-numpy
- TOXENV=py27-nobyte
- TOXENV=doctesting
- TOXENV=freeze
Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ environment:
- TOXENV: "py27-pexpect"
- TOXENV: "py27-xdist"
- TOXENV: "py27-trial"
- TOXENV: "py27-numpy"
- TOXENV: "py35-pexpect"
- TOXENV: "py35-xdist"
- TOXENV: "py35-trial"
- TOXENV: "py35-numpy"
- TOXENV: "py27-nobyte"
- TOXENV: "doctesting"
- TOXENV: "freeze"
Expand Down
13 changes: 11 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ envlist=
py36
py37
pypy
{py27,py35}-{pexpect,xdist,trial}
{py27,py35}-{pexpect,xdist,trial,numpy}
py27-nobyte
doctesting
freeze
Expand All @@ -26,7 +26,6 @@ deps=
nose
mock
requests
numpy

[testenv:py26]
commands= pytest --lsof -rfsxX {posargs:testing}
Expand Down Expand Up @@ -111,6 +110,16 @@ deps={[testenv:py27-trial]deps}
commands=
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]
skipsdist=True
usedevelop=True
Expand Down

0 comments on commit 5d24968

Please sign in to comment.