simplify script scripts/setUpMavenPhase.sh

remove the ignored tests
This commit is contained in:
rodicasutu
2020-07-07 15:53:34 +03:00
parent 3089303335
commit 77a7b5fedb
2 changed files with 2 additions and 13 deletions

View File

@@ -43,7 +43,6 @@ public class RMYamlUnitTest extends BaseYamlUnitTest
private static String RM_COMMUNITY_YAML_FILES_PATH = "../rm-community-rest-api-explorer/src/main/webapp/definitions";
@Test
@Ignore
public void validateYamlFile() throws Exception
{
validateYamlFiles(getYamlFilesList(RM_COMMUNITY_YAML_FILES_PATH));

View File

@@ -1,21 +1,11 @@
#!/usr/bin/env bash
echo "Branch name: ${TRAVIS_BRANCH}"
echo "Branch name: ${TRAVIS_PULL_REQUEST}"
echo "Pull request: ${TRAVIS_PULL_REQUEST}"
if [ "${TRAVIS_BRANCH}" == "master" ];
then
export MAVEN_PHASE="deploy"
elif [[ ${TRAVIS_BRANCH} = release* ]];
if [[ "${TRAVIS_BRANCH}" == "master" || "${TRAVIS_BRANCH}" = release* ]] && [ "${TRAVIS_PULL_REQUEST}" == "false" ];
then
export MAVEN_PHASE="deploy"
else
export MAVEN_PHASE="verify"
fi
# If this is pull request
if [ "${TRAVIS_PULL_REQUEST}" != "false" ];
then
export MAVEN_PHASE="verify"
fi