<commit_before>language: python

python:
    - "2.6"
    - "2.7"
    - "pypy"
    - "3.2"
    - "3.3"
    - "3.4"
    - "3.5"

env:
    - LANG=
    - PEP8_VERSION=pypi
    - PEP8_VERSION=github

matrix:
    allow_failures:
        - env: PEP8_VERSION=github

install:
    - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi
    - if [ "$PEP8_VERSION" == "github" ]; then pip install git+https://github.com/PyCQA/pycodestyle; fi
    - python setup.py build --build-base=".build-$TRAVIS_PYTHON_VERSION" install

script:
    - python test/test_autopep8.py
    - python test/acid.py -aaa --experimental test/example.py
    - python test/acid.py -aaa --experimental test/example_with_reduce.py

    - if [ "$TRAVIS_PYTHON_VERSION" == "3.3" ]; then python -m doctest -v README.rst; fi

    - if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then pycodestyle autopep8.py; fi
    - if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then pip install pyflakes; pyflakes autopep8.py; fi

    - pip install pydiff
    - python test/acid.py -aaa --compare-bytecode --experimental test/example.py

    # See issue #175.
    - python test/acid.py --aggressive --line-range 550 610 test/inspect_example.py
    - python test/acid.py --line-range 289 925 test/vectors_example.py

    - python test/test_suite.py

after_success:
    # pypy is too slow.
    - if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then ./coveralls.bash; fi<commit_msg>remove 3.2 and support pypy3<commit_after>language: python

python:
    - "2.6"
    - "2.7"
    - "3.3"
    - "3.4"
    - "3.5"
    - "pypy"
    - "pypy3"

env:
    - LANG=
    - PEP8_VERSION=pypi
    - PEP8_VERSION=github

matrix:
    allow_failures:
        - env: PEP8_VERSION=github

install:
    - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi
    - if [ "$PEP8_VERSION" == "github" ]; then pip install git+https://github.com/PyCQA/pycodestyle; fi
    - python setup.py build --build-base=".build-$TRAVIS_PYTHON_VERSION" install

script:
    - python test/test_autopep8.py
    - python test/acid.py -aaa --experimental test/example.py
    - python test/acid.py -aaa --experimental test/example_with_reduce.py

    - if [ "$TRAVIS_PYTHON_VERSION" == "3.3" ]; then python -m doctest -v README.rst; fi

    - if [ "$TRAVIS_PYTHON_VERSION" != "pypy"* ]; then pycodestyle autopep8.py; fi
    - if [ "$TRAVIS_PYTHON_VERSION" != "pypy"* ]; then pip install pyflakes; pyflakes autopep8.py; fi

    - pip install pydiff
    - python test/acid.py -aaa --compare-bytecode --experimental test/example.py

    # See issue #175.
    - python test/acid.py --aggressive --line-range 550 610 test/inspect_example.py
    - python test/acid.py --line-range 289 925 test/vectors_example.py

    - python test/test_suite.py

after_success:
    # pypy is too slow.
    - if [ "$TRAVIS_PYTHON_VERSION" != "pypy"* ]; then ./coveralls.bash; fi
{'fraction_non_alphanumeric': 0.14340277777777777, 'fraction_numerical': 0.027777777777777776, 'mean_word_length': 2.6422250316055624, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7335757', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1091, 'n_words': 239}