machine:
  python:
    version: 3.5.1
dependencies:
  override:
    - pip install codecov tox tox-pyenv
    - pyenv local 2.7.9 3.4.2
test:
  override:
  - tox -- -x tests --cov
  post:
  - codecov

machine:
  python:
    version: 3.5.1
  services:
    - docker
dependencies:
  override:
    - pip install codecov tox tox-pyenv
    - pyenv local 2.7.9 3.4.2
test:
  override:
  - tox -- -x tests --cov
  post:
  - codecov
deployment:
  hub:
    branch: master
    commands:
      - docker build -t $DOCKER_REPOSITORY .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push $DOCKER_REPOSITORY

Build and push docker image
Build and push docker image
