language: python

python:
    - "2.6"
    - "2.7"
    - "pypy"
    - "3.1"
    - "3.2"

install:
    - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip --quiet install unittest2; fi
    - python setup.py install

script:
    - python test/test_autopep8.py
    - python test/acid.py test/example.py

language: python

python:
    - "2.6"
    - "2.7"
    - "pypy"
    - "3.1"
    - "3.2"

install:
    - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip --quiet install unittest2; fi
    - python setup.py install

script:
    - python test/test_autopep8.py
    - python test/acid.py test/example.py

    - python setup.py sdist -d .tmp
    - cd .tmp
    - tar xf *.tar.gz
    - cd *
    - python setup.py test
    - cd ../..
    - rm -r .tmp

Add test from source distribution
Add test from source distribution

This is to prevent things like issue #54 in the future.
