From 4ede68c6e40b6000da5f390a5c6dce78465784f4 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 9 Jun 2014 19:41:58 +0300 Subject: [PATCH] Add gaiohttp tests for travis build --- .travis.yml | 1 + check_py3k.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 check_py3k.py diff --git a/.travis.yml b/.travis.yml index 2dea0409..a9fde9aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ python: install: - "pip install -r requirements_dev.txt" - "python setup.py install" + - python check_py3k.py && pip install aiohttp || true script: py.test -x tests/ branches: only: diff --git a/check_py3k.py b/check_py3k.py new file mode 100644 index 00000000..17a9af99 --- /dev/null +++ b/check_py3k.py @@ -0,0 +1,6 @@ +import sys + +if sys.version_info[0] < 3: + sys.exit(1) +else: + sys.exit(0)