language: python
python:
  - "2.7"
  - "3.6"
  - "3.5"
  - "3.4"
sudo: false # Use container-based infrastructure
install:
  - "pip install mock"
script: "python -m unittest discover -p *_test.py"

language: python
cache: pip
python:
  - "2.7"
  - "3.6"
  - "3.5"
  - "3.4"
sudo: false # Use container-based infrastructure
install:
  - "pip install mock"
script: "python -m unittest discover -p *_test.py"

Enable pip cache in Travis CI
Enable pip cache in Travis CI

Slightly speed up builds and reduce load on PyPI servers.

For more information, see:

https://docs.travis-ci.com/user/caching/#pip-cache
