Fixes E2E tag

This commit is contained in:
Aaron Louie 2020-05-18 13:58:38 -04:00
parent 6156a99f67
commit 7f9dce9b00

View File

@ -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