version: 2
jobs:
  build:
    docker:
    - image: python:stretch
    steps:
    - checkout
    - run: pip install tox
    - run: tox

version: 2
jobs:
  build:
    docker:
    - image: randomknowledge/docker-pyenv-tox
    steps:
    - checkout
    - run: pip install tox
    - run: tox -e py27,py32,py33,py34,py35,py36

Use container with pyenv in Circle CI
Use container with pyenv in Circle CI
