Use TRAVIS_PYTHON_VERSION to install aiohttp on Python 3.

This commit is contained in:
Berker Peksag 2014-06-12 17:55:09 +03:00
parent b00e875cc4
commit ab3428ec38
2 changed files with 1 additions and 7 deletions

View File

@ -8,7 +8,7 @@ python:
install:
- "pip install -r requirements_dev.txt"
- "python setup.py install"
- python check_py3k.py && pip install aiohttp || true
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install aiohttp; fi
script: py.test -x tests/
branches:
only:

View File

@ -1,6 +0,0 @@
import sys
if sys.version_info[0] < 3:
sys.exit(1)
else:
sys.exit(0)