general:
  branches:
    ignore:
      - gh-pages

test:
  override:
    - python manage.py test --coverage
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/python/
    - mv test-reports/*.xml $CIRCLE_TEST_REPORTS/python/
    # Update gh-pages with Coverage
    - git checkout gh-pages
    - git config --global user.email "lev@levlaz.org"
    - git config --global user.name "Lev Lazinskiy"
    - git add -A
    - git commit -m 'Updated gh-pages with Coverage report'
    - git push -u origin gh-pages

deployment:
  push_to_linode:
    branch: master
    commands:
      - rsync -avz app circle@braindump.pw:/var/www
      - rsync -avz *.{py,txt} circle@braindump.pw:/var/www

general:
  branches:
    ignore:
      - gh-pages

test:
  override:
    - python manage.py test --coverage
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/python/
    - mv test-reports/*.xml $CIRCLE_TEST_REPORTS/python/
    # Update gh-pages with Coverage
    - git checkout gh-pages
    - git config --global user.email "lev@levlaz.org"
    - git config --global user.name "Lev Lazinskiy"
    - git add -A
    - git commit -m 'Updated gh-pages with Coverage report'
    - git push -u origin gh-pages

deployment:
  push_to_linode:
    branch: master
    commands:
      - git checkout master
      - rsync -avz app circle@braindump.pw:/var/www
      - rsync -avz *.{py,txt} circle@braindump.pw:/var/www

Switch to master for deployment
Switch to master for deployment
