diff options
| -rw-r--r-- | .travis.yml | 19 | ||||
| -rwxr-xr-x[-rw-r--r--] | __init__.py | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | mimeparse.py | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | mimeparse_test.py | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | setup.py | 0 | ||||
| -rw-r--r-- | tox.ini | 25 |
6 files changed, 45 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b6cfd0b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: python + +python: + - "2.7" + +env: + - TOXENV=py26 + - TOXENV=py27 + - TOXENV=py32 + - TOXENV=py33 + - TOXENV=pep8,pyflakes + +# command to install dependencies +install: + - pip install tox + +# command to run tests +script: + - tox diff --git a/__init__.py b/__init__.py index e69de29..e69de29 100644..100755 --- a/__init__.py +++ b/__init__.py diff --git a/mimeparse.py b/mimeparse.py index b8e6783..b8e6783 100644..100755 --- a/mimeparse.py +++ b/mimeparse.py diff --git a/mimeparse_test.py b/mimeparse_test.py index ee193c3..4b4f95e 100644..100755 --- a/mimeparse_test.py +++ b/mimeparse_test.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """ Python tests for Mime-Type Parser. @@ -0,0 +1,25 @@ +[tox] +envlist = py33,py32,py27,py26,pep8,pyflakes + +[testenv] +commands = ./mimeparse_test.py + +[testenv:py33] +basepython = python3.3 + +[testenv:py32] +basepython = python3.2 + +[testenv:py27] +basepython = python2.7 + +[testenv:py26] +basepython = python2.6 + +[testenv:pep8] +deps = pep8 +commands = pep8 --statistics --show-source --ignore=E501 --exclude=.venv,.tox,*egg . + +[testenv:pyflakes] +deps = pyflakes +commands = pyflakes mimeparse.py mimeparse_test.py setup.py |
