diff --git a/.travis.yml b/.travis.yml
index 99862ef245ef9c36023f227a29c55c63490add54..73e30edf14ff02c991d1e2f4efd3d89b010a7ae1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -48,7 +48,7 @@ jobs:
     - stage: local e2e
       # type = api - should only be activated by API
       # when send API, ensure to set env TEST_SUITE=e2e-local to explicitly trigger this build
-      if: env(TEST_SUITE) =~ /^https/ AND branch IN (master, staging, dev) AND type = api
+      if: (env(TEST_SUITE) =~ /^https/) AND (branch IN (master, staging, dev)) AND (type = api)
       name: e2e (local)
       install:
       - npm i