language: python

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


sudo: false

# whitelist
# gh-pages is otherwise ignored by Travis CI
# Use a regex to whitelist gh-pages and all branches
branches:
  only:
    - /.*/

install:
 - if [[ $TRAVIS_PYTHON_VERSION == 2* || $TRAVIS_PYTHON_VERSION == "pypy" ]]; then pip install -r requirements/python2.txt; fi
 - if [[ $TRAVIS_PYTHON_VERSION == 3* || $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then pip install -r requirements/python3.txt; fi
 - wget https://raw.githubusercontent.com/hugovk/word-tools/master/word_tools.py
 - pip install pep8 pyflakes
 - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi

script:
 - nosetests
 - pep8 --statistics --count .
 - pyflakes . | tee >(wc -l)

matrix:
  fast_finish: true
  allow_failures:
    - python: 2.6
    - python: 3.2

language: python

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


sudo: false

# whitelist
# gh-pages is otherwise ignored by Travis CI
# Use a regex to whitelist gh-pages and all branches
branches:
  only:
    - /.*/

install:
 - if [[ $TRAVIS_PYTHON_VERSION == 2* || $TRAVIS_PYTHON_VERSION == "pypy" ]]; then pip install -r requirements/python2.txt; fi
 - if [[ $TRAVIS_PYTHON_VERSION == 3* || $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then pip install -r requirements/python3.txt; fi
 - wget https://raw.githubusercontent.com/hugovk/word-tools/master/word_tools.py
 - pip install pep8 pyflakes
 - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi

script:
 - nosetests
 - pyflakes .
 - pep8 --statistics --count .

matrix:
  fast_finish: true
  allow_failures:
    - python: 2.6
    - python: 3.2

Allow pyflakes to return error and fail build
Allow pyflakes to return error and fail build
