sudo: required
dist: trusty
language: generic
services:
  - docker

cache:
  directories:
    - ~/.cache/pip

install:
      docker build . -t ci-image;
script:
      docker run -v ~/.cache/pip:/home/tester/.cache/pip -v $(pwd):/home/tester/src ci-image:latest tox -e ${TOXENV} ;
env:
      - TOXENV=py27
      - TOXENV=py36
      - TOXENV=docs
