Move scripts used by travis jobs under travis folder because when mirroring all scripts folders are excluded

(cherry picked from commit 9a3588220b)
This commit is contained in:
cagache
2021-04-01 18:44:35 +03:00
committed by Cezar.Leahu
parent 7d3a85a449
commit 60602a57b9
19 changed files with 44 additions and 44 deletions

View File

@@ -3,9 +3,9 @@ jobs:
- name: "Community Publish to S3 Release Bucket" - name: "Community Publish to S3 Release Bucket"
stage: Publish stage: Publish
if: commit_message =~ /\[community release .*\]/ AND commit_message =~ /\[publish\]/ if: commit_message =~ /\[community release .*\]/ AND commit_message =~ /\[publish\]/
before_script: source scripts/set-release-variables.sh before_script: source travis/scripts/set-release-variables.sh
script: skip script: skip
before_deploy: bash scripts/zip-artifacts-release.sh "community" before_deploy: bash travis/scripts/zip-artifacts-release.sh "community"
deploy: deploy:
- provider: s3 - provider: s3
access_key_id: ${RELEASE_AWS_ACCESS_KEY} access_key_id: ${RELEASE_AWS_ACCESS_KEY}
@@ -24,9 +24,9 @@ jobs:
- name: "Enterprise Publish to S3 Release Bucket" - name: "Enterprise Publish to S3 Release Bucket"
stage: Publish stage: Publish
if: commit_message =~ /\[enterprise release .*\]/ AND commit_message =~ /\[publish\]/ if: commit_message =~ /\[enterprise release .*\]/ AND commit_message =~ /\[publish\]/
before_script: source scripts/set-release-variables.sh before_script: source travis/scripts/set-release-variables.sh
script: skip script: skip
before_deploy: bash scripts/zip-artifacts-release.sh "enterprise" before_deploy: bash travis/scripts/zip-artifacts-release.sh "enterprise"
deploy: deploy:
- provider: s3 - provider: s3
access_key_id: ${RELEASE_AWS_ACCESS_KEY} access_key_id: ${RELEASE_AWS_ACCESS_KEY}

View File

@@ -4,13 +4,13 @@ jobs:
stage: Release stage: Release
if: commit_message =~ /\[community release .*\]/ if: commit_message =~ /\[community release .*\]/
before_script: before_script:
- source scripts/set-release-variables.sh - source travis/scripts/set-release-variables.sh
- bash scripts/check-existing-tags.sh "alfresco/alfresco-governance-share-community" - bash travis/scripts/check-existing-tags.sh "alfresco/alfresco-governance-share-community"
script: script:
- bash scripts/community_release.sh - bash travis/scripts/community_release.sh
before_deploy: before_deploy:
- bash scripts/zip-artifacts-staging.sh "community" - bash travis/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} - bash travis/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: deploy:
- provider: s3 - provider: s3
access_key_id: ${STAGING_AWS_ACCESS_KEY} access_key_id: ${STAGING_AWS_ACCESS_KEY}
@@ -30,12 +30,12 @@ jobs:
stage: Release stage: Release
if: commit_message =~ /\[enterprise release .*\]/ if: commit_message =~ /\[enterprise release .*\]/
before_script: before_script:
- source scripts/set-release-variables.sh - source travis/scripts/set-release-variables.sh
script: script:
- bash scripts/enterprise_release.sh - bash travis/scripts/enterprise_release.sh
before_deploy: before_deploy:
- bash scripts/zip-artifacts-staging.sh "enterprise" - bash travis/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} - bash travis/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: deploy:
- provider: s3 - provider: s3
access_key_id: ${STAGING_AWS_ACCESS_KEY} access_key_id: ${STAGING_AWS_ACCESS_KEY}

View File

@@ -3,7 +3,7 @@ jobs:
- name: "Source Clear Scan (SCA)" - name: "Source Clear Scan (SCA)"
stage: Tests stage: Tests
if: branch = master OR branch =~ /release\/V3.\d+.*/ if: branch = master OR branch =~ /release\/V3.\d+.*/
script: travis_wait 30 bash scripts/source_clear.sh script: travis_wait 30 bash travis/scripts/source_clear.sh
- name: "Unit & Integration Tests" - name: "Unit & Integration Tests"
stage: Tests stage: Tests
@@ -30,13 +30,13 @@ jobs:
before_script: before_script:
- | - |
if [[ ${TRAVIS_COMMIT_MESSAGE} == *"[tests on community]"* ]]; then if [[ ${TRAVIS_COMMIT_MESSAGE} == *"[tests on community]"* ]]; then
bash scripts/startAlfresco.sh rm-community/rm-community-repo false bash travis/scripts/startAlfresco.sh rm-community/rm-community-repo false
else else
bash scripts/startAlfresco.sh rm-enterprise/rm-enterprise-repo false bash travis/scripts/startAlfresco.sh rm-enterprise/rm-enterprise-repo false
fi fi
- bash scripts/waitForAlfrescoToStart.sh - bash travis/scripts/waitForAlfrescoToStart.sh
script: travis_wait 40 mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -Dskip.automationtests=false script: travis_wait 40 mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -Dskip.automationtests=false
after_script: bash scripts/getLogs.sh after_script: bash travis/scripts/getLogs.sh
- name: "Enterprise Rest API Tests" - name: "Enterprise Rest API Tests"
stage: Tests stage: Tests
@@ -52,13 +52,13 @@ jobs:
- travis_retry travis_wait 90 mvn -B -q install ${MVN_SKIP} -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo -am - 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 - travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-enterprise-rest-api -am
before_script: before_script:
- bash scripts/startAlfresco.sh rm-enterprise/rm-enterprise-repo false - bash travis/scripts/startAlfresco.sh rm-enterprise/rm-enterprise-repo false
- bash scripts/waitForAlfrescoToStart.sh - bash travis/scripts/waitForAlfrescoToStart.sh
- bash scripts/dockerLimitMemory.sh - bash travis/scripts/dockerLimitMemory.sh
- sudo free -m -t - sudo free -m -t
script: script:
- travis_wait 90 mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -Dskip.automationtests=false - travis_wait 90 mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -Dskip.automationtests=false
after_script: bash scripts/getLogs.sh after_script: bash travis/scripts/getLogs.sh
- name: "Enterprise Rest API WORM Tests" - name: "Enterprise Rest API WORM Tests"
stage: Tests stage: Tests
@@ -74,13 +74,13 @@ jobs:
- travis_retry travis_wait 90 mvn -B -U -q clean install ${MVN_SKIP} -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo,:alfresco-governance-services-enterprise-share -am - travis_retry travis_wait 90 mvn -B -U -q clean 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-enterprise-rest-api -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: before_script:
- bash scripts/create-worm-bucket.sh - bash travis/scripts/create-worm-bucket.sh
- bash scripts/start-compose.sh "rm-enterprise/rm-enterprise-share/docker-compose-worm-support-rest.yml" - bash travis/scripts/start-compose.sh "rm-enterprise/rm-enterprise-share/docker-compose-worm-support-rest.yml"
- bash scripts/waitForAlfrescoToStart.sh - bash travis/scripts/waitForAlfrescoToStart.sh
script: mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -DsuiteXmlFile=wormTestSuite.xml -Dskip.automationtests=false script: mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -DsuiteXmlFile=wormTestSuite.xml -Dskip.automationtests=false
after_script: after_script:
- bash scripts/getLogs.sh - bash travis/scripts/getLogs.sh
- bash scripts/cleanup.sh - bash travis/scripts/cleanup.sh
- name: "Enterprise Rest API Cluster Tests" - name: "Enterprise Rest API Cluster Tests"
stage: Tests stage: Tests
@@ -95,8 +95,8 @@ jobs:
- travis_retry travis_wait 90 mvn -B -U -q clean install ${MVN_SKIP} -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo -am - travis_retry travis_wait 90 mvn -B -U -q clean 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 - travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-enterprise-rest-api -am
before_script: before_script:
- bash scripts/start-compose.sh "rm-enterprise/rm-enterprise-repo/docker-compose-cluster.yml" - bash travis/scripts/start-compose.sh "rm-enterprise/rm-enterprise-repo/docker-compose-cluster.yml"
- bash scripts/waitForAlfrescoToStart.sh - bash travis/scripts/waitForAlfrescoToStart.sh
script: mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -DsuiteXmlFile=clusterTestSuite.xml -Dskip.automationtests=false script: mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -DsuiteXmlFile=clusterTestSuite.xml -Dskip.automationtests=false
after_failure: after_failure:
- docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000 - docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
@@ -120,19 +120,19 @@ jobs:
- | - |
if [[ ${TRAVIS_COMMIT_MESSAGE} == *"[tests on community]"* ]]; then 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 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 rm-community/rm-community-share false bash travis/scripts/startAlfresco.sh rm-community/rm-community-share false
bash scripts/waitForAlfrescoToStart.sh bash travis/scripts/waitForAlfrescoToStart.sh
else 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 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 rm-enterprise/rm-enterprise-share true bash travis/scripts/startAlfresco.sh rm-enterprise/rm-enterprise-share true
bash scripts/waitForAlfrescoToStart.sh bash travis/scripts/waitForAlfrescoToStart.sh
bash scripts/dockerLimitMemory.sh bash travis/scripts/dockerLimitMemory.sh
sudo free -m -t sudo free -m -t
fi fi
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am - travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am
script: 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} - 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}
after_script: bash scripts/getLogs.sh after_script: bash travis/scripts/getLogs.sh
- <<: *community_shared_UI_configuration - <<: *community_shared_UI_configuration
name: "Community Smoke UI Tests for actions in RM site" name: "Community Smoke UI Tests for actions in RM site"
@@ -167,13 +167,13 @@ jobs:
install: 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 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 - travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am
- bash scripts/startAlfresco.sh rm-enterprise/rm-enterprise-share true - bash travis/scripts/startAlfresco.sh rm-enterprise/rm-enterprise-share true
- bash scripts/waitForAlfrescoToStart.sh - bash travis/scripts/waitForAlfrescoToStart.sh
- bash scripts/dockerLimitMemory.sh - bash travis/scripts/dockerLimitMemory.sh
- sudo free -m -t - sudo free -m -t
script: 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} - 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}
after_script: bash scripts/getLogs.sh after_script: bash travis/scripts/getLogs.sh
- <<: *enterprise_shared_UI_configuration - <<: *enterprise_shared_UI_configuration
name: "Enterprise Classification Level 2 UI Tests" name: "Enterprise Classification Level 2 UI Tests"
@@ -211,11 +211,11 @@ jobs:
- travis_retry travis_wait 90 mvn -B -U -q clean install ${MVN_SKIP} -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo,:alfresco-governance-services-enterprise-share -am - travis_retry travis_wait 90 mvn -B -U -q clean 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 - travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am
before_script: before_script:
- bash scripts/create-worm-bucket.sh - bash travis/scripts/create-worm-bucket.sh
- bash scripts/start-compose.sh "rm-enterprise/rm-enterprise-share/docker-compose-worm-support-ui.yml" - bash travis/scripts/start-compose.sh "rm-enterprise/rm-enterprise-share/docker-compose-worm-support-ui.yml"
- bash scripts/waitForAlfrescoToStart.sh - bash travis/scripts/waitForAlfrescoToStart.sh
script: script:
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -DsuiteXmlFile=wormTestSuite.xml -Dskip.automationtests=false -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-governance-services-automation-ui -DsuiteXmlFile=wormTestSuite.xml -Dskip.automationtests=false -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
after_script: after_script:
- bash scripts/getLogs.sh - bash travis/scripts/getLogs.sh
- bash scripts/cleanup.sh - bash travis/scripts/cleanup.sh

View File

View File