language: python

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

before_install:
    - if [ "$TRAVIS_PYTHON_VERSION" == "jython" ]; then wget 'http://sourceforge.net/projects/jython/files/jython-dev/2.7.0a1/jython_installer-2.7a1.jar/download' -O jython_installer.jar; java -jar jython_installer.jar -s -d $HOME/jython; export PATH=$HOME/jython:$PATH; fi
    - if [ "$TRAVIS_PYTHON_VERSION" == "jython" ]; then export ENV_PYTHON=jython; jython -c "print('')"; else export ENV_PYTHON=python; fi
    # We will spawn pep8 under Jython rather than importing it. This is
    # required because installing pep8 under Jython currently isn't working.
    - if [ "$TRAVIS_PYTHON_VERSION" == "jython" ]; then sudo pip install pep8; fi

install:
    - $ENV_PYTHON setup.py install

script:
    - $ENV_PYTHON test/test_autopep8.py

language: python

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

before_install:
    - if [ "$TRAVIS_PYTHON_VERSION" == "jython" ]; then wget 'http://sourceforge.net/projects/jython/files/jython-dev/2.7.0a1/jython_installer-2.7a1.jar/download' -O jython_installer.jar; java -jar jython_installer.jar -s -d $HOME/jython; export PATH=$HOME/jython:$PATH; fi
    - if [ "$TRAVIS_PYTHON_VERSION" == "jython" ]; then export ENV_PYTHON=jython; jython -c "print('')"; else export ENV_PYTHON=python; fi
    # We will spawn pep8 under Jython rather than importing it. This is
    # required because installing pep8 under Jython currently isn't working.
    - if [ "$TRAVIS_PYTHON_VERSION" == "jython" ]; then sudo pip install pep8; fi

install:
    - $ENV_PYTHON setup.py install

script:
    - $ENV_PYTHON test/test_autopep8.py

matrix:
    allow_failures:
        - python: jython

Allow Jython failures on Travis for now
Allow Jython failures on Travis for now

It is too flaky at this point.
