I am looking for how to run Travis conditionally by following conditions.
When at the pull-request, as a default behavior without
branchessyntax and without
ifsyntax, the both “Travis CI - Branch” and "Travis - Pull Request ‘’ are executed. The following screen shot shows the status. But I want to enable only “Travis CI - Pull Request” excluding “Travis CI - Branch” build at the pull-request, because I want to see the result from
I want to enable Travis when a commit is pushed or when it is executed on cron mode to specific branches such as
- I want to enable Travis when a commit is pushed from any branches on the “forked” repository.
Do you have any idea how to implement this condition in
Maybe we need to use
if syntax on the top level.
Here is a related past discussion about this topic. However, the mentioned
branches - only syntax does not cover my case, because it does not enable Travis at the push timing.