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 language: python
env: python:
- TOX_ENV=py26 - "2.6"
- TOX_ENV=py27 - "2.7"
- TOX_ENV=py33 - "3.3"
- TOX_ENV=py34 - "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] [testenv]
deps = pytest deps = pytest
mock mock
commands = py.test --capture=sys --showlocals commands = py.test