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 <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
YAMAMOTO Takashi 2014-10-14 10:34:58 +09:00 committed by FUJITA Tomonori
parent 00d736a8c3
commit 6fb4550337

View File

@ -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