From 19b5af2eeedf70d407831d16aacc942f93c07b7b Mon Sep 17 00:00:00 2001 From: Tom Page Date: Tue, 15 Nov 2022 16:31:33 +0000 Subject: [PATCH] ACS-4005 Only include AGS REST tests if we include TAS. [tas][ags] The AGS REST tests use alfresco-tas-restapi, so this is a requirement. Build the related maven modules first in a separate step. --- .travis.yml | 5 +++-- amps/ags/pom.xml | 10 +++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 71ba0fa028..5e04b6d640 100644 --- a/.travis.yml +++ b/.travis.yml @@ -387,7 +387,7 @@ jobs: script: travis_retry travis_wait 80 mvn -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-mysql -PagsAllTestSuitePt4 -f amps/ags/pom.xml ${LOG_WARN} - name: "AGS Community Rest API Tests" - if: (branch =~ /(release\/.*$|master)/ AND commit_message !~ /\[skip ags\]/) OR commit_message =~ /\[ags\]/ + if: (branch =~ /(release\/.*$|master)/ AND commit_message !~ /\[skip ags\]/ AND commit_message !~ /\[skip tas\]/) OR (commit_message =~ /\[ags\]/ AND commit_message =~ /\[tas\]/) install: travis_retry travis_wait 40 env REQUIRES_LOCAL_IMAGES=true bash scripts/travis/build.sh addons: artifacts: @@ -399,7 +399,8 @@ jobs: before_script: - ${TAS_SCRIPTS}/start-compose.sh ./amps/ags/rm-community/rm-community-repo/docker-compose.yml - ${TAS_SCRIPTS}/wait-for-alfresco-start.sh "http://localhost:8080/alfresco" - script: travis_wait 40 mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -am -DfailIfNoTests=false -Dskip.automationtests=false -Pags + - travis_wait 40 mvn -B install -pl :alfresco-governance-services-automation-community-rest-api -am -Pags -Pall-tas-tests -DskipTests + script: travis_wait 40 mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -Dskip.automationtests=false -Pags -Pall-tas-tests after_script: bash amps/ags/travis/scripts/getLogs.sh - name: "Push to Nexus" diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 276ea0522b..c272909b22 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -12,9 +12,17 @@ rm-community - rm-automation + + + all-tas-tests + + rm-automation + + + + UTF-8 UTF-8