APPS-261 Build changes for worm test

This commit is contained in:
Cezar.Leahu
2020-08-18 13:25:35 +03:00
parent 023b0b13fe
commit 5a9e227a36
3 changed files with 23 additions and 29 deletions

View File

@@ -2,27 +2,22 @@
echo "Branch name: ${TRAVIS_BRANCH}"
echo "Pull request: ${TRAVIS_PULL_REQUEST}"
echo "Travis job name: ${TRAVIS_JOB_NAME}"
branchName=${TRAVIS_BRANCH}
imageTag=${branchName:8}
echo "Image tag: ${imageTag}"
echo "Image tag: ${TRAVIS_BRANCH:8}"
if [[ ${TRAVIS_JOB_NAME} == "Build AGS Enterprise" ]];
then
export BUILD_PROFILE="internal"
else
export BUILD_PROFILE="master"
fi
if [[ ${TRAVIS_JOB_NAME} == "Build AGS Enterprise" ]] ; then
export BUILD_PROFILE="internal"
else
export BUILD_PROFILE="master"
fi
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" == "false" ]];
then
export MAVEN_PHASE="deploy"
export IMAGE_TAG="latest"
elif [[ ${TRAVIS_BRANCH} = release* && "${TRAVIS_PULL_REQUEST}" == "false" ]];
then
export MAVEN_PHASE="deploy"
export IMAGE_TAG="${imageTag}-latest"
else
export MAVEN_PHASE="verify"
export BUILD_PROFILE="buildDockerImage"
export IMAGE_TAG="latest"
fi
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" == "false" ]] ; then
export MAVEN_PHASE="deploy"
export IMAGE_TAG="latest"
elif [[ ${TRAVIS_BRANCH} = release* && "${TRAVIS_PULL_REQUEST}" == "false" ]] ; then
export MAVEN_PHASE="deploy"
export IMAGE_TAG="${TRAVIS_BRANCH:8}-latest"
else
export MAVEN_PHASE="verify"
export BUILD_PROFILE="buildDockerImage"
export IMAGE_TAG="latest"
fi

View File

@@ -16,7 +16,7 @@ export S3_BUCKET2_NAME="travis-ags-worm-${TRAVIS_JOB_NUMBER}-b2"
export S3_PROTOCOL=s3v2
export S3_BUCKET2_PROTOCOL=s3vTest
bash ./scripts/start-compose.sh rm-enterprise/rm-enterprise-share/worm-support-docker-compose.yml
bash scripts/start-compose.sh "${PWD}/rm-enterprise/rm-enterprise-share/worm-support-docker-compose.yml"
# Run the WORM tests
mvn -B -U clean test \