mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge remote-tracking branch 'remotes/origin/release/V3.1' into merge-3.2/APPS_234_IntegrationsOnMySQL_no
This commit is contained in:
14
travis/.travis.env-vars.yml
Normal file
14
travis/.travis.env-vars.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
env:
|
||||
global:
|
||||
- AUTOMATION_COMMUNITY_PATH=rm-automation/rm-automation-community-rest-api
|
||||
- AUTOMATION_ENTERPRISE_PATH=rm-automation/rm-automation-enterprise-rest-api
|
||||
- AUTOMATION_UI_PATH=rm-automation/rm-automation-ui
|
||||
- COMMUNITY_REPO_PATH=rm-community/rm-community-repo
|
||||
- COMMUNITY_SHARE_PATH=rm-community/rm-community-share
|
||||
- ENTERPRISE_REPO_PATH=rm-enterprise/rm-enterprise-repo
|
||||
- ENTERPRISE_SHARE_PATH=rm-enterprise/rm-enterprise-share
|
||||
- MVN_SKIP='-Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests'
|
||||
- ALFRESCO_URL="http://localhost:8080/alfresco"
|
||||
- SHARE_URL="http://localhost:8181/share"
|
||||
- DISPLAY=:99.0
|
||||
- WEBDRIVER_ARGUMENTS='-Dwebdriver.local.grid=true -Dwebdriver.browser=RemoteFireFox -Dwebdriver.localGrid=false -Dorg.alfresco.rm.timeout_seconds.MEDIUM=30'
|
23
travis/.travis.integration-test-MySQL.yml
Normal file
23
travis/.travis.integration-test-MySQL.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
### Integration tests on MySQL are running:
|
||||
## - on stable branch
|
||||
## - on demand with commit message [execute tests on MySQL]
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- &integration_test_on_MYSQL
|
||||
name: "Community Integrations Tests on MySQL"
|
||||
services: docker
|
||||
stage: Tests
|
||||
if: branch =~ /(release\/.*$|master)/ OR commit_message =~ /\[execute tests on MySQL\]/
|
||||
before_install:
|
||||
- source ./scripts/mysql/start.sh mysql:5.6.26
|
||||
- docker run -d -p 61617:61617 -p 5673:5673 alfresco/alfresco-activemq:5.15.8
|
||||
script:
|
||||
- travis_retry travis_wait 80 mvn -B -q clean install -Puse-mysql -DskipTests -Dskip.integrationtests=false -Dmy.db.name=alfresco -Dmy.db.port=3306 -Dcommunity -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||
|
||||
- <<: *integration_test_on_MYSQL
|
||||
name: "Enterprise Integrations Tests on MySQL"
|
||||
install:
|
||||
- travis_retry travis_wait 60 mvn -B -q clean install ${MVN_SKIP} -f rm-community/pom.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||
script:
|
||||
- travis_retry travis_wait 80 mvn -B -q clean install -Puse-mysql -DskipTests -Dskip.integrationtests=false -Dmy.db.name=alfresco -Dmy.db.port=3306 -f rm-enterprise/pom.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
43
travis/.travis.publish-stage.yml
Normal file
43
travis/.travis.publish-stage.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
jobs:
|
||||
include:
|
||||
- name: "Community Publish to S3 Release Bucket"
|
||||
stage: Publish
|
||||
if: commit_message =~ /\[community release .*\]/ AND commit_message =~ /\[publish\]/
|
||||
before_script: source scripts/set-release-variables.sh
|
||||
script: skip
|
||||
before_deploy: bash scripts/zip-artifacts-release.sh "community"
|
||||
deploy:
|
||||
- provider: s3
|
||||
access_key_id: ${RELEASE_AWS_ACCESS_KEY}
|
||||
secret_access_key: $RELEASE_AWS_ACCESS_SECRET}
|
||||
region: "eu-west-1"
|
||||
bucket: "eu.dl.alfresco.com"
|
||||
upload_dir: "release/community/RM/${RELEASE_VERSION}"
|
||||
skip_cleanup: true
|
||||
acl: private
|
||||
local_dir: artifacts_dir
|
||||
on:
|
||||
all_branches: true
|
||||
after_deploy:
|
||||
- echo "Finished release and deployed to https://s3.console.aws.amazon.com/s3/buckets/eu.dl.alfresco.com/release/community/RM/${RELEASE_VERSION}"
|
||||
|
||||
- name: "Enterprise Publish to S3 Release Bucket"
|
||||
stage: Publish
|
||||
if: commit_message =~ /\[enterprise release .*\]/ AND commit_message =~ /\[publish\]/
|
||||
before_script: source scripts/set-release-variables.sh
|
||||
script: skip
|
||||
before_deploy: bash scripts/zip-artifacts-release.sh "enterprise"
|
||||
deploy:
|
||||
- provider: s3
|
||||
access_key_id: ${RELEASE_AWS_ACCESS_KEY}
|
||||
secret_access_key: ${RELEASE_AWS_ACCESS_SECRET}
|
||||
region: "eu-west-1"
|
||||
bucket: "eu.dl.alfresco.com"
|
||||
upload_dir: "release/enterprise/RM/${RELEASE_VERSION}"
|
||||
skip_cleanup: true
|
||||
acl: private
|
||||
local_dir: artifacts_dir
|
||||
on:
|
||||
all_branches: true
|
||||
after_deploy:
|
||||
- echo "Finished release and deployed to https://s3.console.aws.amazon.com/s3/buckets/eu.dl.alfresco.com/release/enterprise/RM/${RELEASE_VERSION}"
|
52
travis/.travis.release-stage.yml
Normal file
52
travis/.travis.release-stage.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
jobs:
|
||||
include:
|
||||
- name: "Community Release and Publish to S3 Staging Bucket"
|
||||
stage: Release
|
||||
if: commit_message =~ /\[community release .*\]/
|
||||
before_script:
|
||||
- source scripts/set-release-variables.sh
|
||||
- bash scripts/check-existing-tags.sh "alfresco/alfresco-governance-share-community"
|
||||
script:
|
||||
- bash scripts/release.sh "community"
|
||||
before_deploy:
|
||||
- bash scripts/zip-artifacts-staging.sh "community"
|
||||
- bash scripts/pushDockerDigestTag.sh -i quay.io/alfresco/alfresco-governance-repository-community -i quay.io/alfresco/alfresco-governance-share-community -r quay.io -t ${RELEASE_VERSION}
|
||||
deploy:
|
||||
- provider: s3
|
||||
access_key_id: ${STAGING_AWS_ACCESS_KEY}
|
||||
secret_access_key: ${STAGING_AWS_SECRET_KEY}
|
||||
region: "eu-west-1"
|
||||
bucket: "alfresco-artefacts-staging"
|
||||
upload_dir: "community/RM/${RELEASE_VERSION}"
|
||||
skip_cleanup: true
|
||||
acl: private
|
||||
local_dir: artifacts_dir
|
||||
on:
|
||||
all_branches: true
|
||||
after_deploy:
|
||||
- echo "Finished release and deployed to https://s3.console.aws.amazon.com/s3/buckets/alfresco-artefacts-staging/community/RM/${RELEASE_VERSION}"
|
||||
|
||||
- name: "Enterprise Release and Publish to S3 Staging Bucket"
|
||||
stage: Release
|
||||
if: commit_message =~ /\[enterprise release .*\]/
|
||||
before_script:
|
||||
- source scripts/set-release-variables.sh
|
||||
script:
|
||||
- bash scripts/release.sh "enterprise"
|
||||
before_deploy:
|
||||
- bash scripts/zip-artifacts-staging.sh "enterprise"
|
||||
- bash scripts/pushDockerDigestTag.sh -i quay.io/alfresco/alfresco-governance-repository-enterprise -i quay.io/alfresco/alfresco-governance-share-enterprise -r quay.io -t ${RELEASE_VERSION}
|
||||
deploy:
|
||||
- provider: s3
|
||||
access_key_id: ${STAGING_AWS_ACCESS_KEY}
|
||||
secret_access_key: ${STAGING_AWS_SECRET_KEY}
|
||||
region: "eu-west-1"
|
||||
bucket: "alfresco-artefacts-staging"
|
||||
upload_dir: "enterprise/RM/${RELEASE_VERSION}"
|
||||
skip_cleanup: true
|
||||
acl: private
|
||||
local_dir: artifacts_dir
|
||||
on:
|
||||
all_branches: true
|
||||
after_deploy:
|
||||
- echo "Finished release and deployed to https://s3.console.aws.amazon.com/s3/buckets/alfresco-artefacts-staging/enterprise/RM/${RELEASE_VERSION}"
|
126
travis/.travis.tests-stage.yml
Normal file
126
travis/.travis.tests-stage.yml
Normal file
@@ -0,0 +1,126 @@
|
||||
jobs:
|
||||
include:
|
||||
- name: "Community Rest API Tests"
|
||||
stage: Tests
|
||||
install:
|
||||
- |
|
||||
if [[ ${TRAVIS_BRANCH} == *community* ]]; then
|
||||
travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-community-repo -am
|
||||
else
|
||||
travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo -am
|
||||
fi
|
||||
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-community-rest-api -am
|
||||
before_script:
|
||||
- |
|
||||
if [[ ${TRAVIS_BRANCH} == *community* ]]; then
|
||||
bash scripts/startAlfresco.sh $COMMUNITY_REPO_PATH false
|
||||
else
|
||||
bash scripts/startAlfresco.sh $ENTERPRISE_REPO_PATH false
|
||||
fi
|
||||
- bash scripts/waitForAlfrescoToStart.sh
|
||||
script: mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -Dskip.automationtests=false
|
||||
after_failure: docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
|
||||
|
||||
- name: "Enterprise Rest API Tests"
|
||||
stage: Tests
|
||||
install:
|
||||
- travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo -am
|
||||
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-enterprise-rest-api -am
|
||||
before_script:
|
||||
- bash scripts/startAlfresco.sh $ENTERPRISE_REPO_PATH false
|
||||
- bash scripts/waitForAlfrescoToStart.sh
|
||||
- bash scripts/dockerLimitMemory.sh
|
||||
- sudo free -m -t
|
||||
script:
|
||||
- mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -Dskip.automationtests=false
|
||||
after_failure: docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
|
||||
|
||||
- &community_shared_UI_configuration
|
||||
name: "Community Smoke UI Tests for Records"
|
||||
stage: Tests
|
||||
addons:
|
||||
firefox: "43.0.1"
|
||||
artifacts:
|
||||
paths:
|
||||
- ./rm-automation/rm-automation-ui/target/surefire-reports
|
||||
- ./rm-automation/rm-automation-ui/target/reports
|
||||
- ./rm-automation/rm-automation-ui/target/screenshots
|
||||
target_paths: $TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
|
||||
install:
|
||||
- |
|
||||
if [[ ${TRAVIS_COMMIT_MESSAGE} == *"[tests on community]"* ]]; then
|
||||
travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-community-repo,:alfresco-governance-services-community-share -am
|
||||
bash scripts/startAlfresco.sh $COMMUNITY_SHARE_PATH false
|
||||
bash scripts/waitForAlfrescoToStart.sh
|
||||
else
|
||||
travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo,:alfresco-governance-services-enterprise-share -am
|
||||
bash scripts/startAlfresco.sh $ENTERPRISE_SHARE_PATH true
|
||||
bash scripts/waitForAlfrescoToStart.sh
|
||||
bash scripts/dockerLimitMemory.sh
|
||||
sudo free -m -t
|
||||
fi
|
||||
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=communitySmokeRecords.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||
|
||||
- <<: *community_shared_UI_configuration
|
||||
name: "Community Smoke UI Tests for actions in RM site"
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=communitySmokeRMSite.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||
|
||||
- <<: *community_shared_UI_configuration
|
||||
name: "Community Level 2 UI Tests"
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=communityLevel2Tests.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||
|
||||
- &enterprise_shared_UI_configuration
|
||||
name: "Enterprise Level 2 UI Tests"
|
||||
stage: Tests
|
||||
if: commit_message !~ /\[tests on community\]/
|
||||
addons:
|
||||
firefox: "43.0.1"
|
||||
artifacts:
|
||||
paths:
|
||||
- ./rm-automation/rm-automation-ui/target/surefire-reports
|
||||
- ./rm-automation/rm-automation-ui/target/reports
|
||||
- ./rm-automation/rm-automation-ui/target/screenshots
|
||||
target_paths: $TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
|
||||
install:
|
||||
- travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo,:alfresco-governance-services-enterprise-share -am
|
||||
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am
|
||||
- bash scripts/startAlfresco.sh $ENTERPRISE_SHARE_PATH true
|
||||
- bash scripts/waitForAlfrescoToStart.sh
|
||||
- bash scripts/dockerLimitMemory.sh
|
||||
- sudo free -m -t
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=enterpriseLevel2Tests.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||
|
||||
- <<: *enterprise_shared_UI_configuration
|
||||
name: "Enterprise Classification Level 2 UI Tests"
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=enterpriseLevel2ClassificationTests.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||
|
||||
- <<: *enterprise_shared_UI_configuration
|
||||
name: "Enterprise Records Classification UI Tests"
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=enterpriseRecordsClassificationTests.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||
|
||||
- <<: *enterprise_shared_UI_configuration
|
||||
name: "Enterprise Folders Classification UI Tests"
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=enterpriseFoldersClassificationTests.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||
|
||||
- <<: *enterprise_shared_UI_configuration
|
||||
name: "Enterprise Documents Classification UI Tests"
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=enterpriseDocumentsClassificationTests.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||
|
||||
- <<: *enterprise_shared_UI_configuration
|
||||
name: "Enterprise Security Marks UI Tests"
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=enterpriseSecurityMarksTests.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
||||
|
||||
- <<: *enterprise_shared_UI_configuration
|
||||
name: "Enterprise Console, Guides and Configuration UI Tests"
|
||||
script:
|
||||
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=enterpriseConsoleGuidesAndConfiguration.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
|
Reference in New Issue
Block a user