简体   繁体   中英

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

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.

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

gh-pages被忽略,因为大多数人都希望travis忽略它们。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM