From 03806abda06d88d435d34f621dc99d7a454ede37 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 19 Mar 2020 20:26:35 +0100 Subject: [PATCH] Changed build steps so that mutation testing a docker build are only run on pull request builds --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index aab5d0c4..58a3ad4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,8 +20,8 @@ before_script: script: - npm run lint - npm run test:ci - - if [[ -z $TRAVIS_TAG ]]; then docker build -t shlink-web-client:test . ; fi - - if [[ -z $TRAVIS_TAG ]]; then npm run mutate:ci ; fi + - if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then docker build -t shlink-web-client:test . ; fi + - if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then npm run mutate:ci ; fi after_success: - node_modules/.bin/ocular coverage/clover.xml