machine:
  timezone:
    America/Los_Angeles
  python:
    version: 2.7.8
  environment:
      PATH: $PATH:`pwd`/cmd_line/enum/Linux_64bit:`pwd`/cmd_line/bader/Linux_64bit:`pwd`/cmd_line/gulp/Linux_64bit:`pwd`/cmd_line/aconvasp/Linux_64bit
      GULP_LIB: /`pwd`/cmd_line/gulp/Libraries
checkout:
  post:
    - git submodule sync
    - git submodule update --init
dependencies:
  override:
    - easy_install -U setuptools
    - pip install -q numpy
    - pip install -r requirements.txt
    - pip install -r requirements-optional.txt
    - sudo apt-get install python-openbabel
    - cd monty && git checkout master && git pull && python setup.py install
    - python setup.py develop
test:
  override:
    - nosetests -v:
        timeout: 720
    # Some rudimentary command line tests for pmg
    - pmg convert test_files/Li2O.cif POSCAR.pmg
    - pmg convert POSCAR.pmg pmg.cif
    - pmg analyze -d test_files
deployment:
  py3:
    branch: master
    commands:
      - git config --global user.name "Py3k merger"
      - git config --global user.email ongsp@ucsd.edu
      - git config --global push.default matching
      #- git checkout stable_py3
      #- git pull
      #- git merge master -m "Automatic Py3k merge for testing"
      #- git push origin stable_py3

machine:
  timezone:
    America/Los_Angeles
  python:
    version: 2.7.8
  environment:
      PATH: $PATH:`pwd`/cmd_line/enum/Linux_64bit:`pwd`/cmd_line/bader/Linux_64bit:`pwd`/cmd_line/gulp/Linux_64bit:`pwd`/cmd_line/aconvasp/Linux_64bit
      GULP_LIB: /`pwd`/cmd_line/gulp/Libraries
checkout:
  post:
    - git submodule sync
    - git submodule update --init
dependencies:
  override:
    - easy_install -U setuptools
    - pip install -q numpy
    - pip install -r requirements.txt
    - pip install -r requirements-optional.txt
    - sudo apt-get install python-openbabel
    - cd monty && git checkout master && git pull && python setup.py install
    - python setup.py develop
test:
  override:
    - nosetests -v:
        timeout: 720
    # Some rudimentary command line tests for pmg
    - pmg convert test_files/Li2O.cif POSCAR.pmg
    - pmg convert POSCAR.pmg pmg.cif
    - pmg analyze -d test_files
deployment:
  py3:
    branch: master
    commands:
      - git config --global user.name "Py3k merger"
      - git config --global user.email ongsp@ucsd.edu
      - git config --global push.default matching
      - git checkout stable_py3
      - git pull
      - git merge master -m "Automatic Py3k merge for testing"
      - git push origin stable_py3

Add back stable_py3 testing for main branch.
Add back stable_py3 testing for main branch.
