Remi
Remi

Reputation: 5367

How to prevent Travis-CI from executing the script if PR and anything else than master

Is it possible to make Travis-CI build only once a merge has been done on Master? So not the PR itself, but only after it's merged?

As described in the documentation, I've tried

branches:
  only: ["master"]

However, once this was filed in as a PR, Travis still built it.

Is there another method possible to prevent all other branches from building?

Upvotes: 1

Views: 427

Answers (1)

DannyB
DannyB

Reputation: 14776

In addition to your branches only master setting, I believe you should disable the "Build pushed pull requests" switch in the Build Settings menu.

enter image description here

Upvotes: 2

Related Questions