From 6fb45503375480f78bf0b9f76d1457a7abf6b9a4 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 14 Oct 2014 10:34:58 +0900 Subject: travis: Run tests via tox Also, run pep8 in a separate environment. The way to specify python versions might seem awkward. (Well, it seems so to me.) But it follows one of examples referenced in the official documentation: http://docs.travis-ci.com/user/languages/python/ https://github.com/twisted/klein/blob/master/.travis.yml Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 7d2f1918..9f7a11e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,14 @@ language: python python: - - "2.6" - "2.7" +env: + - TOX_ENV=py26 + - TOX_ENV=py27 + - TOX_ENV=pep8 + install: - - "pip install -r tools/pip-requires -r tools/test-requires --use-mirrors" + - "pip install tox" script: - - "./run_tests.sh -N" + - tox -e $TOX_ENV -- cgit v1.2.3