# Travis CI configuration for remote testing.
# See:
#   https://docs.travis-ci.com/user/customizing-the-build/
#   https://docs.travis-ci.com/user/languages/python
#   http://lint.travis-ci.org

language: python

python:
  - "pypy"
  - "pypy3"
  - "2.6"
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.6-dev"
  - "nightly"

matrix:
  fast_finish: true
  allow_failures:
    - python: "pypy"
    - python: "pypy3"
    - python: "nightly"

sudo: false

install:
 - pip install 'setuptools>=17.1'
 - pip install 'mock>=2.0'
 - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi
 # Expecting Coverage to fail for pypy3 until Travis supports PyPy3 5.5+ (as of May 2017)
 - pip install coverage

script:
 - coverage run --source=see.py setup.py test

after_success:
 - pip install coveralls
 - coveralls

after_script:
 - coverage report
 - pip install pep8 pyflakes
 - pyflakes *.py | tee >(wc -l)
 - pep8 --statistics --count *.py

# Travis CI configuration for remote testing.
# See:
#   https://docs.travis-ci.com/user/customizing-the-build/
#   https://docs.travis-ci.com/user/languages/python
#   http://lint.travis-ci.org

language: python

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

matrix:
  fast_finish: true
  allow_failures:
    - python: "pypy"
    - python: "pypy3"
    - python: "nightly"

sudo: false

install:
 - pip install 'setuptools>=17.1'
 - pip install 'mock>=2.0'
 - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi
 # Expecting Coverage to fail for pypy3 until Travis supports PyPy3 5.5+ (as of May 2017)
 - pip install coverage

script:
 - coverage run --source=see setup.py test

after_success:
 - pip install coveralls
 - coveralls

after_script:
 - coverage report
 - pip install pep8 pyflakes
 - pyflakes *.py | tee >(wc -l)
 - pep8 --statistics --count *.py

Fix coverage command; remove 3.6-dev
Travis: Fix coverage command; remove 3.6-dev
