I have a bunch of different builds that I need Travis to run when I submit a PR with a script that runs tests, and then I want different Travis build to run when I merge that PR that has a deploy script.
So for the Pull Requests builds in my yaml file I have
if: type IN (pull_request)
and then for the other (deployment) builds I have
if: env(TRAVIS_BRANCH) IN (env(DIST_BRANCH)) AND type NOT IN (pull_request)
But for some reason builds are not being triggered upon merges with this configuration.
When I debug an older build I get:
$DIST_BRANCH = master $TRAVIS_EVENT_TYPE = push $TRAVIS_BRANCH = master
as env vars, which checks out with my statement. So I’m confused why it’s not running.
Any help would be greatly appreciated here.