language: python
sudo: required
services:
  - docker
branches:
  # Restrict push builds to only master
  only:
  - master
env:
  - DOCKER_COMPOSE_VERSION=1.22.0
before_install:
  # Fail immediately on any error
  - set -e
  # See https://docs.travis-ci.com/user/docker/
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin
install:
  # Build containers
  # Use BUILD_MODE=pull if you prefer pulling existing images
  - make build-tests
script:
  - make tests

language: python
python:
  - "2.7"
sudo: required
services:
  - docker
branches:
  # Restrict push builds to only master
  only:
  - master
env:
  - DOCKER_COMPOSE_VERSION=1.22.0
before_install:
  # Fail immediately on any error
  - set -e
  # See https://docs.travis-ci.com/user/docker/
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin
install:
  # Build containers
  # Use BUILD_MODE=pull if you prefer pulling existing images
  - make build-tests
script:
  - make tests

Define python version for Travis
Define python version for Travis

Apr 16, 2019 the default changes from 2.7 to 3.6. This will keep it at 2.7
