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";
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void validateYamlFile() throws Exception
|
||||
{
|
||||
validateYamlFiles(getYamlFilesList(RM_COMMUNITY_YAML_FILES_PATH));
|
||||
|
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user