From 4e632cfe4c3a875cb3b5ecced36d12fe72ac634f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 21 Feb 2019 19:07:30 +0000 Subject: [PATCH] chore(ci): only test docker builds for pull requests This is to stop building docker images twice for jobs triggered on merge and release tag --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 380316cd9..95cad040a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -87,6 +87,9 @@ jobs: - git diff --exit-code - stage: Build Docker image + # we build and push doker image on merge and tag, so this should only + # run for pull requests, to test that they don't break docker builds + if: repo = prymitive/karma AND (branch != master OR type = pull_request) language: generic addons: apt: