mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
use different profile to install alfresco and let the initial profile how it was in order to have also green bamboo builds
This commit is contained in:
@@ -73,7 +73,7 @@ jobs:
|
|||||||
before_install:
|
before_install:
|
||||||
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
||||||
- travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_COMMUNITY_PATH/target
|
- travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_COMMUNITY_PATH/target
|
||||||
install: travis_wait 20 mvn install -Pinstall-alfresco,apply-rm-community -q -f $AUTOMATION_COMMUNITY_PATH/pom.xml
|
install: travis_wait 20 mvn install -PinstallAlfresco,apply-rm-community -q -f $AUTOMATION_COMMUNITY_PATH/pom.xml
|
||||||
script:
|
script:
|
||||||
- echo "Community Rest API Tests"
|
- echo "Community Rest API Tests"
|
||||||
# Uncomment following line to start alfresco env using run-alfresco profile and run the tests.
|
# Uncomment following line to start alfresco env using run-alfresco profile and run the tests.
|
||||||
@@ -84,7 +84,7 @@ jobs:
|
|||||||
before_install:
|
before_install:
|
||||||
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
||||||
- travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_ENTERPRISE_PATH/target
|
- travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_ENTERPRISE_PATH/target
|
||||||
install: travis_wait 20 mvn install -Pinstall-alfresco,apply-rm-enterprise -q -f $AUTOMATION_ENTERPRISE_PATH/pom.xml
|
install: travis_wait 20 mvn install -PinstallAlfresco,apply-rm-enterprise -q -f $AUTOMATION_ENTERPRISE_PATH/pom.xml
|
||||||
script:
|
script:
|
||||||
- echo "Enterprise Rest API Tests"
|
- echo "Enterprise Rest API Tests"
|
||||||
- name: "Community UI Tests ..."
|
- name: "Community UI Tests ..."
|
||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
before_install:
|
before_install:
|
||||||
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
||||||
- travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_UI_PATH/target
|
- travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_UI_PATH/target
|
||||||
install: travis_wait 20 mvn install -Pinstall-alfresco,apply-rm-community -q -f $AUTOMATION_UI_PATH/pom.xml
|
install: travis_wait 20 mvn install -PinstallAlfresco,apply-rm-community -q -f $AUTOMATION_UI_PATH/pom.xml
|
||||||
script:
|
script:
|
||||||
- echo "Community UI Tests ..."
|
- echo "Community UI Tests ..."
|
||||||
- name: "Enterprise UI Tests ..."
|
- name: "Enterprise UI Tests ..."
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
before_install:
|
before_install:
|
||||||
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
||||||
- travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_UI_PATH/target
|
- travis_wait 5 bash scripts/downloadInstaller.sh $AUTOMATION_UI_PATH/target
|
||||||
install: travis_wait 20 mvn install -Pinstall-alfresco,apply-rm-enterprise -q -f $AUTOMATION_UI_PATH/pom.xml
|
install: travis_wait 20 mvn install -PinstallAlfresco,apply-rm-enterprise -q -f $AUTOMATION_UI_PATH/pom.xml
|
||||||
script:
|
script:
|
||||||
- echo "Enterprise UI Tests ..."
|
- echo "Enterprise UI Tests ..."
|
||||||
- name: "Source Clear Scan (SCA)"
|
- name: "Source Clear Scan (SCA)"
|
||||||
|
@@ -90,8 +90,50 @@
|
|||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
<!-- Profile used to install alfresco on bamboo. It can be removed after travis migration is finished -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>install-alfresco</id>
|
<id>install-alfresco</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>fetch-installer</id>
|
||||||
|
<phase>generate-test-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<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>
|
||||||
|
<echo>Downloading Alfresco installer...</echo>
|
||||||
|
<get src="${installer.url}" dest="target/alf-installer.bin" />
|
||||||
|
<chmod file="target/alf-installer.bin" perm="a+x" verbose="true" />
|
||||||
|
<echo>Installing Alfresco...</echo>
|
||||||
|
<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="target/alf-installer.bin" verbose="true" />
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>postgresql</groupId>
|
||||||
|
<artifactId>postgresql</artifactId>
|
||||||
|
<version>9.1-901-1.jdbc4</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
<!-- Profile used to install alfresco on travis -->
|
||||||
|
<profile>
|
||||||
|
<id>installAlfresco</id>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
Reference in New Issue
Block a user