From 5d333fed1ab5fcbc6068a636b0de31b0646d4b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 23 Nov 2018 22:33:37 +0000 Subject: [PATCH] chore(demo): build demo only for internal PRs --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 416fe32bf..24a6a49e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -107,7 +107,10 @@ jobs: tags: true - stage: Deploy demo app to Heroku - if: repo = prymitive/karma + # deploy on every job that isn't a PR, this way we: + # * don't deploy on PRs send from forks, only internal + # * deploy only once per PR - since we will deploy on branch job + if: repo = prymitive/karma AND type != pull_request env: # HEROKU_TOKEN, valid forever, needed to push docker image and release # it on heroku app