I see there are similar posts from last year, but I want to check that this is a bug (still) and not my error.
These are the build attributes:
TRAVIS_REPO_SLUG = my-name/my-repo
TRAVIS_EVENT_TYPE = pull_request
TRAVIS_BRANCH = master
The following stage runs (as expected):
- stage: deploy
if: ((repo = my-name/my-repo) AND (branch = master)) OR ((repo != my-name/my-repo) AND (branch != master))
script:
- echo "deploy stage started"
but the following condition ALSO runs, which it should not:
- stage: deploy
if: ((repo = my-name/my-repo) AND (branch = master)) OR ((repo != my-name/my-repo) AND (branch != master)) AND type = push
script:
- echo "deploy stage started"
This does NOT run, which is expected:
- stage: deploy
if: type = push
script:
- echo "deploy stage started"
This does NOT run, which is expected:
- stage: deploy
if: (repo != my-name/my-repo) AND (branch != some-branch)
script:
- echo "deploy stage started"
So the last AND condition in the second example isn’t working. Thoughts?
Thanks!