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:
parent
00d736a8c3
commit
6fb4550337
10
.travis.yml
10
.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
|
||||
|
Loading…
Reference in New Issue
Block a user