Is possible conditional automatic deployments?

,

I’m using “feature branches” and gitlab.com
My code is php laravel app

How can I automatic deploy to the server when push changes to “branch2” and doesn’t exists conflicts with the rest of branches

Thanks