diff --git a/.travis.yml b/.travis.yml
index 657d4a86b275c3a973b0be141134f3de9de70466..7fb7008f4d9aab3e92856d78a495f3ebd1153637 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/
+      if: type = api
       name: e2e (local)
       install:
       - npm i