mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
simplify script scripts/setUpMavenPhase.sh
remove the ignored tests
This commit is contained in:
@@ -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";
|
private static String RM_COMMUNITY_YAML_FILES_PATH = "../rm-community-rest-api-explorer/src/main/webapp/definitions";
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
|
||||||
public void validateYamlFile() throws Exception
|
public void validateYamlFile() throws Exception
|
||||||
{
|
{
|
||||||
validateYamlFiles(getYamlFilesList(RM_COMMUNITY_YAML_FILES_PATH));
|
validateYamlFiles(getYamlFilesList(RM_COMMUNITY_YAML_FILES_PATH));
|
||||||
|
@@ -1,21 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo "Branch name: ${TRAVIS_BRANCH}"
|
echo "Branch name: ${TRAVIS_BRANCH}"
|
||||||
echo "Branch name: ${TRAVIS_PULL_REQUEST}"
|
echo "Pull request: ${TRAVIS_PULL_REQUEST}"
|
||||||
|
|
||||||
if [ "${TRAVIS_BRANCH}" == "master" ];
|
if [[ "${TRAVIS_BRANCH}" == "master" || "${TRAVIS_BRANCH}" = release* ]] && [ "${TRAVIS_PULL_REQUEST}" == "false" ];
|
||||||
then
|
|
||||||
export MAVEN_PHASE="deploy"
|
|
||||||
elif [[ ${TRAVIS_BRANCH} = release* ]];
|
|
||||||
then
|
then
|
||||||
export MAVEN_PHASE="deploy"
|
export MAVEN_PHASE="deploy"
|
||||||
else
|
else
|
||||||
export MAVEN_PHASE="verify"
|
export MAVEN_PHASE="verify"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If this is pull request
|
|
||||||
if [ "${TRAVIS_PULL_REQUEST}" != "false" ];
|
|
||||||
then
|
|
||||||
export MAVEN_PHASE="verify"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user