language: python
python:
  - "3.6-dev"
  - "3.5"
  - "3.4"
  - "3.3"
  - "3.2"
  - "2.7"
  - "pypy"

before_install:
  - pip install coverage
  - pip install codecov

install:
    - "pip install wheel"
    - "pip install -r requirements-dev.txt"

script:
    - "python run-test-coverage.py"
    - "python tests/integration_test_udp.py"
    - "python -c 'import sys; sys.exit(int(sys.subversion[0].lower() != \'pypy\'))' || python tests/integration_test_tcp.py"
    - "python setup.py bdist_wheel -d dist"

after_success:
    - codecov
    - "pip install dist/*.whl"
    - "python -c 'import statsdmetrics'"
    - "python -c 'from statsdmetrics.client import Client'"
    - "python -c 'from statsdmetrics.client.tcp import TCPClient'"

notifications:
      email: false

language: python
python:
  - "3.6-dev"
  - "3.5"
  - "3.4"
  - "3.3"
  - "3.2"
  - "2.7"
  - "pypy"

before_install:
  - pip install coverage
  - pip install codecov

install:
    - "pip install wheel"
    - "pip install -r requirements-dev.txt"

script:
    - "python run-test-coverage.py"
    - "python tests/integration_test_udp.py"
    - "python -c 'import sys; from platform import python_implementation as pi; sys.exit(int(pi().lower() != \'pypy\'))' || python tests/integration_test_tcp.py"
    - "python setup.py bdist_wheel -d dist"

after_success:
    - codecov
    - "pip install dist/*.whl"
    - "python -c 'import statsdmetrics'"
    - "python -c 'from statsdmetrics.client import Client'"
    - "python -c 'from statsdmetrics.client.tcp import TCPClient'"

notifications:
      email: false

Fix issue with detecting PyPy in Travis config file
Fix issue with detecting PyPy in Travis config file

It was not a good idea to check for Python implementation using
sys.subversion() as it's removed from Python 3.
