validation - Travis-ci: Watch and build a single branch from a Git remote repository -
i envountering issues travis-ci. let's have repository on github, multiple branches. need validate , build master branch, , ignore other branches. looking @ travis docs, seems have force single .travis.yml
file in every single branch of repository. should these yml files have same contents ? in other words, do have have this @ top of each single travis.yml file in every branches:
branches: only: - master
in yml file, wish run script runs specs tests, in master branch, validates build travis. specification tests written in files exist in master branch, not others, don't need them there. so, guess i'll have skip script part in yml file pushed in every branch different master ? follows:
#yaml file (master branch) branches: only: - master # run script script: "tsc -f specs/*"
in other branch:
#yaml file (any other branch) branches: only: - master
thanks reading.
yes, have specify build-branches in .travis.yml
every branch.
no, script line not have included in every branch's file.
edit: might interested in observing this feature request travis-ci.
update: since march 2014, can disable building branches/commits without .travis.yml
file in repository settings on travis-ci.org. alternative (currently) called "build commits .travis.yml file", see this blog post
git validation git-branch travis-ci
No comments:
Post a Comment