diff --git a/travis/.travis.publish-stage.yml b/travis/.travis.publish-stage.yml index dd2dea54ba..a2a73c09c3 100644 --- a/travis/.travis.publish-stage.yml +++ b/travis/.travis.publish-stage.yml @@ -3,9 +3,9 @@ jobs: - 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 + before_script: source travis/scripts/set-release-variables.sh script: skip - before_deploy: bash scripts/zip-artifacts-release.sh "community" + before_deploy: bash travis/scripts/zip-artifacts-release.sh "community" deploy: - provider: s3 access_key_id: ${RELEASE_AWS_ACCESS_KEY} @@ -24,9 +24,9 @@ jobs: - 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 + before_script: source travis/scripts/set-release-variables.sh script: skip - before_deploy: bash scripts/zip-artifacts-release.sh "enterprise" + before_deploy: bash travis/scripts/zip-artifacts-release.sh "enterprise" deploy: - provider: s3 access_key_id: ${RELEASE_AWS_ACCESS_KEY} diff --git a/travis/.travis.release-stage.yml b/travis/.travis.release-stage.yml index 4a6c60539d..8d2301df95 100644 --- a/travis/.travis.release-stage.yml +++ b/travis/.travis.release-stage.yml @@ -4,13 +4,13 @@ jobs: 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" + - source travis/scripts/set-release-variables.sh + - bash travis/scripts/check-existing-tags.sh "alfresco/alfresco-governance-share-community" script: - - bash scripts/community_release.sh + - bash travis/scripts/community_release.sh 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} + - bash travis/scripts/zip-artifacts-staging.sh "community" + - 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: - provider: s3 access_key_id: ${STAGING_AWS_ACCESS_KEY} @@ -30,12 +30,12 @@ jobs: stage: Release if: commit_message =~ /\[enterprise release .*\]/ before_script: - - source scripts/set-release-variables.sh + - source travis/scripts/set-release-variables.sh script: - - bash scripts/enterprise_release.sh + - bash travis/scripts/enterprise_release.sh 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} + - bash travis/scripts/zip-artifacts-staging.sh "enterprise" + - 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: - provider: s3 access_key_id: ${STAGING_AWS_ACCESS_KEY} diff --git a/travis/.travis.tests-stage.yml b/travis/.travis.tests-stage.yml index 19d2427b5d..9b1fca53e2 100644 --- a/travis/.travis.tests-stage.yml +++ b/travis/.travis.tests-stage.yml @@ -3,7 +3,7 @@ jobs: - name: "Source Clear Scan (SCA)" stage: Tests 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" stage: Tests @@ -30,13 +30,13 @@ jobs: before_script: - | 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 - bash scripts/startAlfresco.sh rm-enterprise/rm-enterprise-repo false + bash travis/scripts/startAlfresco.sh rm-enterprise/rm-enterprise-repo false 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 - after_script: bash scripts/getLogs.sh + after_script: bash travis/scripts/getLogs.sh - name: "Enterprise Rest API 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 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-enterprise-rest-api -am before_script: - - bash scripts/startAlfresco.sh rm-enterprise/rm-enterprise-repo false - - bash scripts/waitForAlfrescoToStart.sh - - bash scripts/dockerLimitMemory.sh + - bash travis/scripts/startAlfresco.sh rm-enterprise/rm-enterprise-repo false + - bash travis/scripts/waitForAlfrescoToStart.sh + - bash travis/scripts/dockerLimitMemory.sh - sudo free -m -t script: - 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" 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 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-enterprise-rest-api -am before_script: - - bash scripts/create-worm-bucket.sh - - bash scripts/start-compose.sh "rm-enterprise/rm-enterprise-share/docker-compose-worm-support-rest.yml" - - bash scripts/waitForAlfrescoToStart.sh + - bash travis/scripts/create-worm-bucket.sh + - bash travis/scripts/start-compose.sh "rm-enterprise/rm-enterprise-share/docker-compose-worm-support-rest.yml" + - bash travis/scripts/waitForAlfrescoToStart.sh script: mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -DsuiteXmlFile=wormTestSuite.xml -Dskip.automationtests=false after_script: - - bash scripts/getLogs.sh - - bash scripts/cleanup.sh + - bash travis/scripts/getLogs.sh + - bash travis/scripts/cleanup.sh - name: "Enterprise Rest API Cluster 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 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-enterprise-rest-api -am before_script: - - bash scripts/start-compose.sh "rm-enterprise/rm-enterprise-repo/docker-compose-cluster.yml" - - bash scripts/waitForAlfrescoToStart.sh + - bash travis/scripts/start-compose.sh "rm-enterprise/rm-enterprise-repo/docker-compose-cluster.yml" + - bash travis/scripts/waitForAlfrescoToStart.sh script: mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -DsuiteXmlFile=clusterTestSuite.xml -Dskip.automationtests=false after_failure: - 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 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 scripts/waitForAlfrescoToStart.sh + bash travis/scripts/startAlfresco.sh rm-community/rm-community-share false + bash travis/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 rm-enterprise/rm-enterprise-share true - bash scripts/waitForAlfrescoToStart.sh - bash scripts/dockerLimitMemory.sh + bash travis/scripts/startAlfresco.sh rm-enterprise/rm-enterprise-share true + bash travis/scripts/waitForAlfrescoToStart.sh + bash travis/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} - after_script: bash scripts/getLogs.sh + after_script: bash travis/scripts/getLogs.sh - <<: *community_shared_UI_configuration name: "Community Smoke UI Tests for actions in RM site" @@ -167,13 +167,13 @@ jobs: 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 rm-enterprise/rm-enterprise-share true - - bash scripts/waitForAlfrescoToStart.sh - - bash scripts/dockerLimitMemory.sh + - bash travis/scripts/startAlfresco.sh rm-enterprise/rm-enterprise-share true + - bash travis/scripts/waitForAlfrescoToStart.sh + - bash travis/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} - after_script: bash scripts/getLogs.sh + after_script: bash travis/scripts/getLogs.sh - <<: *enterprise_shared_UI_configuration 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 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am before_script: - - bash scripts/create-worm-bucket.sh - - bash scripts/start-compose.sh "rm-enterprise/rm-enterprise-share/docker-compose-worm-support-ui.yml" - - bash scripts/waitForAlfrescoToStart.sh + - bash travis/scripts/create-worm-bucket.sh + - bash travis/scripts/start-compose.sh "rm-enterprise/rm-enterprise-share/docker-compose-worm-support-ui.yml" + - bash travis/scripts/waitForAlfrescoToStart.sh 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} after_script: - - bash scripts/getLogs.sh - - bash scripts/cleanup.sh + - bash travis/scripts/getLogs.sh + - bash travis/scripts/cleanup.sh diff --git a/scripts/check-existing-tags.sh b/travis/scripts/check-existing-tags.sh similarity index 100% rename from scripts/check-existing-tags.sh rename to travis/scripts/check-existing-tags.sh diff --git a/scripts/cleanImages.sh b/travis/scripts/cleanImages.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/cleanImages.sh rename to travis/scripts/cleanImages.sh diff --git a/scripts/cleanup.sh b/travis/scripts/cleanup.sh similarity index 100% rename from scripts/cleanup.sh rename to travis/scripts/cleanup.sh diff --git a/scripts/community_release.sh b/travis/scripts/community_release.sh similarity index 100% rename from scripts/community_release.sh rename to travis/scripts/community_release.sh diff --git a/scripts/create-worm-bucket.sh b/travis/scripts/create-worm-bucket.sh similarity index 100% rename from scripts/create-worm-bucket.sh rename to travis/scripts/create-worm-bucket.sh diff --git a/scripts/delete-test-buckets-lambda.py b/travis/scripts/delete-test-buckets-lambda.py similarity index 100% rename from scripts/delete-test-buckets-lambda.py rename to travis/scripts/delete-test-buckets-lambda.py diff --git a/scripts/dockerLimitMemory.sh b/travis/scripts/dockerLimitMemory.sh similarity index 100% rename from scripts/dockerLimitMemory.sh rename to travis/scripts/dockerLimitMemory.sh diff --git a/scripts/getLogs.sh b/travis/scripts/getLogs.sh similarity index 100% rename from scripts/getLogs.sh rename to travis/scripts/getLogs.sh diff --git a/scripts/pushDockerDigestTag.sh b/travis/scripts/pushDockerDigestTag.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/pushDockerDigestTag.sh rename to travis/scripts/pushDockerDigestTag.sh diff --git a/scripts/set-release-variables.sh b/travis/scripts/set-release-variables.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/set-release-variables.sh rename to travis/scripts/set-release-variables.sh diff --git a/scripts/source_clear.sh b/travis/scripts/source_clear.sh similarity index 100% rename from scripts/source_clear.sh rename to travis/scripts/source_clear.sh diff --git a/scripts/start-compose.sh b/travis/scripts/start-compose.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/start-compose.sh rename to travis/scripts/start-compose.sh diff --git a/scripts/startAlfresco.sh b/travis/scripts/startAlfresco.sh similarity index 100% rename from scripts/startAlfresco.sh rename to travis/scripts/startAlfresco.sh diff --git a/scripts/waitForAlfrescoToStart.sh b/travis/scripts/waitForAlfrescoToStart.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/waitForAlfrescoToStart.sh rename to travis/scripts/waitForAlfrescoToStart.sh diff --git a/scripts/zip-artifacts-release.sh b/travis/scripts/zip-artifacts-release.sh similarity index 100% rename from scripts/zip-artifacts-release.sh rename to travis/scripts/zip-artifacts-release.sh diff --git a/scripts/zip-artifacts-staging.sh b/travis/scripts/zip-artifacts-staging.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/zip-artifacts-staging.sh rename to travis/scripts/zip-artifacts-staging.sh