language: go
install: go get -u -v github.com/spf13/hugo

branches:
    only:
        source

script:
    - hugo

after_success:
    - echo "ponylang.org" > ./public/CNAME
    - if [[ $TRAVIS_BRANCH == 'source' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
        rev=$(git rev-parse --short HEAD);

        cd public;

        git init;
        git config user.name "Sean T. Allen";
        git config user.email "sean@monkeysnatchbanana.com";
        git remote add upstream "https://$GH_TOKEN@github.com/ponylang/ponylang.github.io";
        git fetch upstream;
        git reset upstream/master;

        touch .;

        git add -A .;
        git commit -m "rebuild pages at ${rev}";
        git push -q upstream HEAD:master;
      fi;

language: go
install: go get -u -v github.com/spf13/hugo

branches:
    only:
        source

script:
    - hugo

after_success:
    - echo "ponylang.org" > ./public/CNAME
    - if [[ $TRAVIS_BRANCH == 'source' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
        rev=$(git rev-parse --short HEAD);

        cd public;

        git init;
        git config user.name "Sean T. Allen";
        git config user.email "sean@monkeysnatchbanana.com";
        git remote add upstream "https://$GH_TOKEN@github.com/ponylang/ponylang.github.io";
        git fetch upstream;
        git reset upstream/master;

        touch .;

        git add -A .;
        git commit -m "rebuild website from revision ${rev} of source branch";
        git push -q upstream HEAD:master;
      fi;

Update auto build commit message
Update auto build commit message
