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