mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
add automation target directories to cache, download installer to target instead of rm-automation root
This commit is contained in:
15
.travis.yml
15
.travis.yml
@@ -11,6 +11,14 @@ branches:
|
||||
- /merge-2.7\/.*/
|
||||
- /hotfix-2.7\/.*/
|
||||
|
||||
env:
|
||||
- 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
|
||||
- AUTOMATION_COMMUNITY_TARGET=$AUTOMATION_COMMUNITY_PATH/target
|
||||
- AUTOMATION_ENTERPRISE_TARGET=$AUTOMATION_ENTERPRISE_PATH/target
|
||||
- AUTOMATION_UI_TARGET=$AUTOMATION_UI_PATH/target
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.m2
|
||||
@@ -18,6 +26,9 @@ cache:
|
||||
- rm-community/rm-community-share/target
|
||||
- rm-enterprise/rm-enterprise-repo/target
|
||||
- rm-enterprise/rm-enterprise-share/target
|
||||
- $AUTOMATION_COMMUNITY_TARGET
|
||||
- $AUTOMATION_ENTERPRISE_TARGET
|
||||
- $AUTOMATION_UI_TARGET
|
||||
# the cache can grow constantly
|
||||
before_cache:
|
||||
- rm -rf $HOME/.m2/repository/org/alfresco/alfresco-rm*
|
||||
@@ -62,9 +73,9 @@ jobs:
|
||||
- echo "Enterprise Integrations Tests on MySQL"
|
||||
- name: "Community Rest API Tests"
|
||||
stage: Tests
|
||||
before_install: travis_wait 60 bash scripts/downloadInstaller.sh
|
||||
before_install: travis_wait 60 bash scripts/downloadInstaller.sh $AUTOMATION_COMMUNITY_TARGET
|
||||
install:
|
||||
- travis_wait 60 bash scripts/startAlfresco.sh apply-rm-community
|
||||
- travis_wait 60 bash scripts/startAlfresco.sh AUTOMATION_COMMUNITY_PATH apply-rm-community
|
||||
script:
|
||||
- echo "Community Rest API Tests"
|
||||
- name: "Enterprise Rest API Tests"
|
||||
|
@@ -147,12 +147,12 @@
|
||||
<target>
|
||||
<echo>Recreating database...</echo>
|
||||
<sql driver="org.postgresql.Driver" url="jdbc:postgresql:template1" userid="alfresco" password="alfresco" autocommit="true">drop database if exists alfresco; create database alfresco</sql>
|
||||
<chmod file="alf-installer.bin" perm="a+x" verbose="true" />
|
||||
<chmod file="target/alf-installer.bin" perm="a+x" verbose="true" />
|
||||
<echo>Installing Alfresco...</echo>
|
||||
<exec executable="${basedir}/alf-installer.bin" dir="${basedir}" failonerror="true">
|
||||
<exec executable="${basedir}/target/alf-installer.bin" dir="target" failonerror="true">
|
||||
<arg line="--mode unattended --alfresco_admin_password admin --disable-components postgres,alfrescowcmqs --jdbc_username alfresco --jdbc_password alfresco --prefix ${basedir}/target/alf-installation" />
|
||||
</exec>
|
||||
<delete file="${basedir}/alf-installer.bin" verbose="true" />
|
||||
<delete file="target/alf-installer.bin" verbose="true" />
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
# fail script immediately on any errors in external commands and print the lines
|
||||
set -ev
|
||||
|
||||
outputFile="$TRAVIS_BUILD_DIR/rm-automation/alf-installer.bin"
|
||||
outputFile="$TRAVIS_BUILD_DIR/$1/alf-installer.bin"
|
||||
amzFile="/eu.dl.alfresco.com/release/enterprise/5.2/5.2.7/5.2.7.4/alfresco-content-services-installer-5.2.7.4-linux-x64.bin"
|
||||
host="s3-eu-west-1.amazonaws.com"
|
||||
contentType="binary/octet-stream"
|
||||
|
@@ -2,10 +2,5 @@
|
||||
# fail script immediately on any errors in external commands and print the lines
|
||||
set -ev
|
||||
|
||||
export PROFILE=$1
|
||||
|
||||
ls rm-enterprise/rm-enterprise-repo/target
|
||||
ls rm-enterprise/rm-enterprise-share/target
|
||||
cd rm-automation
|
||||
ls
|
||||
mvn install -Pinstall-alfresco,${PROFILE} -q
|
||||
cd $1
|
||||
mvn install -Pinstall-alfresco,$2 -q
|
||||
|
Reference in New Issue
Block a user