diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2014-10-14 10:34:58 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-10-14 10:54:36 +0900 |
commit | 6fb45503375480f78bf0b9f76d1457a7abf6b9a4 (patch) | |
tree | 29e08534951d15a9d5648dfc6c6e1c337f4d153d /.travis.yml | |
parent | 00d736a8c3b5d543fb2e63e60b1e830ed7a10da1 (diff) |
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>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 10 |
1 files changed, 7 insertions, 3 deletions
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 |