From 2dd0d19d03a4c5efbf13da27b68184fc55d9c56e Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Fri, 4 Nov 2022 16:34:58 +0000 Subject: [PATCH] Run release only on merge and upstrem on cron (#7951) --- .travis.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index b169489cdb..cda17738c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,17 +58,15 @@ stages: - name: Prerequisite - name: Setup - name: "Build" - if: tag IS blank AND type = pull_request + if: tag IS blank AND (type = pull_request OR type = cron OR type = api) - name: "Trigger Alpha ADF child build" - if: (branch = develop AND (type = cron || type = api)) OR commit_message =~ /\[trigger adf\]/ - - name: "Build Demo shell" - if: tag IS blank AND type = pull_request + if: type = cron OR (type = api AND commit_message =~ /\[trigger adf\]/) - name: "Release" - if: type = push OR type = cron || type = api + if: type = push - name: "Unit test Lib" - if: type = pull_request || (type = cron || type = api) + if: type = pull_request OR type = cron OR type = api - name: "e2e Test" - if: type = pull_request || (type = cron || type = api) + if: type = pull_request OR type = cron OR type = api - name: "Release tag" if: branch =~ /^master(-patch.*)?$/ - name: "Check bundle"