Add travis support

This commit is contained in:
Ammar Askar 2015-04-03 03:22:52 +05:00
parent d3917b42a4
commit e966237d54
2 changed files with 30 additions and 0 deletions

16
.travis.yml Normal file
View File

@ -0,0 +1,16 @@
language: python
python: 2.7
env:
- TOX_ENV=py27
- TOX_ENV=py33
- TOX_ENV=py34
- TOX_ENV=pypy
- TOX_ENV=cover
- TOX_ENV=flake8
- TOX_ENV=pylint-errors
- TOX_ENV=pylint-full
- TOX_ENV=verify-manifest
install:
- pip install tox
script:
- tox -e $TOX_ENV

View File

@ -0,0 +1,14 @@
import os
os.chdir("..")
from tox._config import parseconfig
print "language: python"
print "python: 2.7"
print "env:"
for env in parseconfig(None, 'tox').envlist:
print " - TOX_ENV=%s" % env
print "install:"
print " - pip install tox"
print "script:"
print " - tox -e $TOX_ENV"