From 70b7cf9b4796ffa65acc2f596b697b2d6e2ec199 Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Wed, 7 Aug 2013 18:39:56 +0200 Subject: [PATCH] Changes travis test command to tox with envs This changes travis command for test to tox -e TOX_ENV and sets up travis environments to TOX_ENV=py27 and TOX_ENV=pep8. This way travis will run both tests on python 2.7 and will check if code is ok by pep8. Another benefit is that we now have only one place to define tests and pep8 options - tox.ini It also commands travis to install tox first. --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1fb59dff..5ed3024e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,13 @@ language: python python: - 2.7 -install: - - pip install -q -r requirements.txt --use-mirrors - - pip install -q -r test-requirements.txt --use-mirrors +env: + - TOX_ENV=py27 + - TOX_ENV=pep8 +before_install: + - pip install tox --use-mirrors script: - - python setup.py testr + - tox -e $TOX_ENV notifications: irc: channels: