1
0
Fork 0

Fix problem with travis not using correct python versions when testing.

This commit is contained in:
Karl-Aksel Puulmann 2015-01-09 12:23:05 +02:00
parent 9a6292170b
commit b54823c96a
3 changed files with 11 additions and 8 deletions

View File

@ -1,10 +1,11 @@
language: python
env:
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=py33
- TOX_ENV=py34
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
install: pip install tox
install:
- pip install . pytest mock
script: tox -e $TOX_ENV
script: py.test

2
tests/pytest.ini Normal file
View File

@ -0,0 +1,2 @@
[pytest]
addopts=--capture=sys --showlocals

View File

@ -3,4 +3,4 @@ envlist = py26, py27, py33, py34
[testenv]
deps = pytest
mock
commands = py.test --capture=sys --showlocals
commands = py.test