machine:
  post:
    - pyenv install --skip-existing 2.7.12
    - pyenv install --skip-existing 3.3.6
    - pyenv install --skip-existing 3.5.2
    - pyenv install --skip-existing 3.6.2
    - pyenv global 2.7.12 3.3.6 3.5.2 3.6.2


dependencies:
  cache_directories:
    - /opt/circleci/python
    - ./.tox/py27
    - ./.tox/py33
    - ./.tox/py35
    - ./.tox/py36

  override:
    - pip install -r requirements.txt -r devrequirements.txt
    - tox --notest  # Install all the envs so they get cached


test:
  override:
    - fab lint
    - fab testall
    - fab gendocs
    - mv ./docs/html ./local/dist/docs
    - cp ./local/dist/test-results.xml $CIRCLE_TEST_REPORTS/

  post:
    - mv local/dist/** "$CIRCLE_ARTIFACTS/"

machine:
  post:
    - pyenv install --skip-existing 2.7.12
    - pyenv install --skip-existing 3.3.6
    - pyenv install --skip-existing 3.5.2
    - pyenv install --skip-existing 3.6.2
    - pyenv global 2.7.12 3.3.6 3.5.2 3.6.2


dependencies:
  cache_directories:
    - /opt/circleci/python
    - ./.tox/py27
    - ./.tox/py33
    - ./.tox/py35
    - ./.tox/py36

  override:
    - pip install Fabric3 tox
    - tox --notest  # Install all the envs so they get cached


test:
  override:
    - fab lint
    - fab testall
    - fab docs
    - mv ./docs/html ./local/dist/docs
    - cp ./local/dist/test-results.xml $CIRCLE_TEST_REPORTS/

  post:
    - mv local/dist/** "$CIRCLE_ARTIFACTS/"

Fix docs generation in CI
Fix docs generation in CI
