machine:
    services:
        - docker

general:
    branches:
        ignore:
            - gh-pages

dependencies:
    override:
        - cd build && docker build -t rocker/popgen - < Dockerfile

checkout:
    post:
        - git config user.name "Hilmar Lapp"
        - git config user.email "hlapp@drycafe.net"

test:
    override:
        - make html

deployment:
    production:
        branch: master
        commands:
            - make deploy
            - git checkout gh-pages
            - rm -rf *
            - git checkout master -- circle.yml
            - tar xvf .site.tar
            - git add --all
            - git commit -m "Website rebuild"
            - git push origin gh-pages
            - git checkout master

machine:
    services:
        - docker

general:
    branches:
        ignore:
            - gh-pages

dependencies:
    override:
        - cd build && docker build -t rocker/popgen - < Dockerfile

checkout:
    post:
        - git config user.name "Hilmar Lapp"
        - git config user.email "hlapp@drycafe.net"

test:
    override:
        - make html

deployment:
    production:
        branch: master
        commands:
            - make deploy
            - git checkout gh-pages
            - rm -r *
            - git checkout master -- circle.yml
            - tar xvf .site.tar
            - git add --all
            - git commit -m "Website rebuild"
            - git push origin gh-pages
            - git checkout master

Revert "Attempts to fix the build timeout on Circle."
Revert "Attempts to fix the build timeout on Circle."

This reverts commit 6622d33269a5d1254201ae03e3468787fb6548ce.
The fix therein (see #150 for PR) turns out to be ineffective.
