machine:
  pre:
    - python --version
    - sudo -H pip install --upgrade virtualenv
    - brew install pyenv
    - echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
    - source ~/.bash_profile
    - pyenv install 3.4.2
    - pyenv install 3.5.2
    - pyenv versions

dependencies:
  override:
    - pyenv global system && python --version && python setup.py install
    - pyenv global 3.4.2 && python --version && python setup.py install
    - pyenv global 3.5.2 && python --version && python setup.py install

test:
  override:
    - pyenv global system && python --version && python setup.py test
    - pyenv global 3.4.2 && python --version && python setup.py test
    - pyenv global 3.5.2 && python --version && python setup.py test

machine:
  pre:
    - brew update
    - python --version
    - sudo -H pip install --upgrade virtualenv
    - brew install pyenv
    - echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
    - source ~/.bash_profile
    - pyenv install 3.4.2
    - pyenv install 3.5.2
    - pyenv versions

dependencies:
  override:
    - pyenv global system && python --version && python setup.py install
    - pyenv global 3.4.2 && python --version && python setup.py install
    - pyenv global 3.5.2 && python --version && python setup.py install

test:
  override:
    - pyenv global system && python --version && python setup.py test
    - pyenv global 3.4.2 && python --version && python setup.py test
    - pyenv global 3.5.2 && python --version && python setup.py test

Fix build failure for CircleCI
Fix build failure for CircleCI

Update brew to unset HOMEBREW_RUBY_PATH, ensuring that it does not "stick"
to a Ruby 2.0 version after a portable Ruby has been installed.

See https://discuss.circleci.com/t/homebrew-must-be-run-under-ruby-2-3-runtimeerror/17232/5.

Fixes #36.

Signed-off-by: Yash Nisar <bcc260f937454c1253676963997b5d52d1764dec@somaiya.edu>
