From 7f9dce9b000b89ee9c18f56c78cee44f3f808376 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Mon, 18 May 2020 13:58:38 -0400 Subject: [PATCH] Fixes E2E tag --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e56659c..135010f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,12 +16,12 @@ services: before_install: - | - branches=('dev' 'testing' 'demo' 'training' 'staging') - if [[ " ${arr[@]} " =~ " ${TRAVIS_BRANCH} " ]]; then - export E2E_TAG="$TRAVIS_BRANCH" + if [[ $TRAVIS_BRANCH =~ ^(dev|testing|demo|training|staging|rrt\/.*)$ ]]; then + export E2E_TAG="${TRAVIS_BRANCH//\//_}" else export E2E_TAG="latest" fi + echo "E2E_TAG = $E2E_TAG" install: - npm install