Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How make travis-ci execute for some branch?

I have a few branches in my repo and I have the .travis.yml file in a branch A (master branch does not have this file). But travis-CI is not starting the build for branch A. What do I need to do to run travis for this branch? When I create a Pull Request from some other branch to master, then travis starts the build.

P.S. I turned off/on Build only if .travis.yml is present but it did not help. Also I can't see any branches in Branches tab. I added

branches:   only:     -A     -master 

in the .travis.yml, but it too did not help.

like image 816
Artur Sh Avatar asked Apr 07 '15 23:04

Artur Sh


People also ask

Which of the following providers are supported by Travis CI?

Continuous Deployment to the following providers is supported: anynines. AWS CloudFormation. AWS CodeDeploy.


1 Answers

You can try and check if it would work with a whitelist.
See "Specify branches to build"

You can either white- or blacklist branches that you want to be built:

# blacklist branches:   except:     - legacy     - experimental  # whitelist branches:   only:     - master     - stable 

Try and put A in a whitelist syntax in the travis.yml, and see if that is picked-up.

like image 146
VonC Avatar answered Sep 29 '22 03:09

VonC