travis-ci triggers build only for master branch in github repo

Larry Cai picture Larry Cai · Oct 14, 2012 · Viewed 8.8k times · Source

I had two branches (master and gh-pages) in github git repo https://github.com/larrycai/LASO

According to the document http://about.travis-ci.org/docs/user/build-configuration/ , if the .travis.yml file exists in the branch, it will be triggered on all branches

While currently it is triggered for build in master branch only, see https://travis-ci.org/#!/larrycai/LASO/branch_summary

Do I must set white or black list in .travis.yml even I want to build for all branches.

Answer

neoascetic picture neoascetic · Jun 15, 2013

According with this merged pull request and this documentation entry, you now can run tests on gh-pages branch by adding the branch to the whitelist:

branches:
  only:
    - gh-pages