machine:
  python:
    version: 2.7.12

dependencies:
  override:
    - pip install --upgrade pip wheel  # pip >= 8.0 needed to be compatible with "manylinux" wheels, used by numpy >= 1.11
    - pip install twine
    - pip install .[test] --upgrade
test:
  pre:
    - git fetch
  override:
    - make test
    - ./check-version-bump.sh
deployment:
  master:
    branch: master
    commands:
      - git tag `python setup.py --version`
      - git push --tags
      - python setup.py bdist_wheel
      - twine upload dist/* --username openfisca-bot --password $PYPI_PASSWORD
      - ssh deploy-new-api@api-test.openfisca.fr

machine:
  python:
    version: 2.7.12
  env:
    PYPI_USERNAME: openfisca-bot  # set here the name of your Pypi account to automatically publish your template to Pypi
    # PYPI_PASSWORD: this value is set in CircleCI's web interface; do not set it here, it is a secret!

dependencies:
  override:
    - pip install --upgrade pip wheel  # pip >= 8.0 needed to be compatible with "manylinux" wheels, used by numpy >= 1.11
    - pip install twine
    - pip install .[test] --upgrade
test:
  pre:
    - git fetch
  override:
    - make test
    - ./check-version-bump.sh
deployment:
  master:
    branch: master
    commands:
      - git tag `python setup.py --version`
      - git push --tags  # update the repository version
      - python setup.py bdist_wheel  # build this package in the dist directory
      - twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD  # publish

Improve CI config file readability
Improve CI config file readability
