coala

coala-html: Setup CI for building Github Pages

Make gh-pages branch in coala/coala-html repo be rebuilt automatically from master on each push to master using Travis CI.

On a fork, the build should not push to upstream gh-pages, instead it should do a push to gh-pages branch on the fork.

A push to a branch other than master on a fork can overwrite the gh-pages, but that would still be a bit messy. Instead write it into gh-pages/<branch_name>. Then, the fork owner can set which branch is published in the repo settings on GitHub. See this documentation.

Additionally, on each pull request, Travis should build the commit on that pull request without overwriting the gh-pages.

Task tags

  • yaml
  • github
  • continuous integration
  • bash
  • travis

Students who completed this task

Nalin Bhardwaj

Task type

  • code Code
close

2017