mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
execute community UI tests on enterprise environment if the branch doesn't contain in its name community keyword
This commit is contained in:
15
.travis.yml
15
.travis.yml
@@ -93,6 +93,7 @@ jobs:
|
|||||||
script:
|
script:
|
||||||
- mvn -B test -pl :alfresco-rm-automation-enterprise-rest-api -Dskip.automationtests=false
|
- mvn -B test -pl :alfresco-rm-automation-enterprise-rest-api -Dskip.automationtests=false
|
||||||
after_failure: docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
|
after_failure: docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
|
||||||
|
|
||||||
- &community_shared_UI_configuration
|
- &community_shared_UI_configuration
|
||||||
name: "Community Smoke UI Tests for Records"
|
name: "Community Smoke UI Tests for Records"
|
||||||
stage: Tests
|
stage: Tests
|
||||||
@@ -105,10 +106,20 @@ jobs:
|
|||||||
- ./rm-automation/rm-automation-ui/target/screenshots
|
- ./rm-automation/rm-automation-ui/target/screenshots
|
||||||
target_paths: $TRAVIS_BUILD_NUMBER
|
target_paths: $TRAVIS_BUILD_NUMBER
|
||||||
before_install:
|
before_install:
|
||||||
- travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-rm-community-repo,:alfresco-rm-community-share -am
|
- |
|
||||||
|
if [[ ${TRAVIS_BRANCH} == *community* ]]; then
|
||||||
|
travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-rm-community-repo,:alfresco-rm-community-share -am
|
||||||
|
else
|
||||||
|
travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-rm-enterprise-repo,:alfresco-rm-enterprise-share -am
|
||||||
|
fi
|
||||||
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-rm-automation-ui -am
|
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-rm-automation-ui -am
|
||||||
install:
|
install:
|
||||||
- bash scripts/startAlfresco.sh $COMMUNITY_SHARE_PATH
|
- |
|
||||||
|
if [[ ${TRAVIS_BRANCH} == *community* ]]; then
|
||||||
|
bash scripts/startAlfresco.sh $COMMUNITY_SHARE_PATH
|
||||||
|
else
|
||||||
|
bash scripts/startAlfresco.sh $ENTERPRISE_SHARE_PATH
|
||||||
|
fi
|
||||||
- bash scripts/waitForAlfrescoToStart.sh
|
- bash scripts/waitForAlfrescoToStart.sh
|
||||||
script:
|
script:
|
||||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-rm-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=communitySmokeRecords.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-rm-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=communitySmokeRecords.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||||
|
Reference in New Issue
Block a user