sudo: false
language: python

python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"
  
cache:
  pip: true
  directories:
    - $HOME/.ccache
    
env:
  global:
      - PATH="/usr/lib/ccache:$PATH"    

install:
  - "pip install -U pip 'setuptools!=26.*'"
  - "pip install ."
  - "pip install -r test_requirements.txt"
  - "pip install flake8"
before_script: "flake8 --max-complexity 10 src/brotli test"
script:
  - >
      if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then
        py.test test/
      else
        py.test --cov brotli test/
      fi

sudo: false
language: python

python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"
  - "pypy-5.3.1"
  
cache:
  pip: true
  directories:
    - $HOME/.ccache
    
env:
  global:
      - PATH="/usr/lib/ccache:$PATH"    

install:
  - "pip install -U pip 'setuptools!=26.*'"
  - "pip install ."
  - "pip install -r test_requirements.txt"
  - "pip install flake8"
before_script: "flake8 --max-complexity 10 src/brotli test"
script:
  - >
      if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then
        py.test test/
      else
        py.test --cov brotli test/
      fi

Test with modern PyPy take 2
Test with modern PyPy take 2

This version of PyPy should be supported in Travis. I've seen it elsewhere.