From 82a8d0ea03833ad5fe779868437fa4c9811a7c78 Mon Sep 17 00:00:00 2001 From: "D.B. Tsai" Date: Wed, 22 Aug 2012 16:14:04 -0700 Subject: Added tox for automation project testing, and travis-ci for continuous integration --- .travis.yml | 19 +++++++++++++++++++ __init__.py | 0 mimeparse.py | 0 mimeparse_test.py | 1 + setup.py | 0 tox.ini | 25 +++++++++++++++++++++++++ 6 files changed, 45 insertions(+) create mode 100644 .travis.yml mode change 100644 => 100755 __init__.py mode change 100644 => 100755 mimeparse.py mode change 100644 => 100755 mimeparse_test.py mode change 100644 => 100755 setup.py create mode 100644 tox.ini 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 old mode 100644 new mode 100755 diff --git a/mimeparse.py b/mimeparse.py old mode 100644 new mode 100755 diff --git a/mimeparse_test.py b/mimeparse_test.py old mode 100644 new mode 100755 index ee193c3..4b4f95e --- a/mimeparse_test.py +++ b/mimeparse_test.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """ Python tests for Mime-Type Parser. diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..a330c2a --- /dev/null +++ b/tox.ini @@ -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 -- cgit v1.2.1