try to start alfresco

This commit is contained in:
Claudia Agache
2020-07-02 20:07:04 +03:00
parent 3d4e4128e0
commit 1d3685da71
2 changed files with 47 additions and 0 deletions

View File

@@ -22,6 +22,9 @@ before_install:
- "cp .travis.settings.xml $HOME/.m2/settings.xml" - "cp .travis.settings.xml $HOME/.m2/settings.xml"
install: skip install: skip
services:
- docker
stages: stages:
- name: Build AGS - name: Build AGS
- name: Tests - name: Tests
@@ -55,6 +58,10 @@ jobs:
- echo "Enterprise Integrations Tests on MySQL" - echo "Enterprise Integrations Tests on MySQL"
- name: "Community Rest API Tests" - name: "Community Rest API Tests"
stage: Tests stage: Tests
install:
- mvn clean install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests
- cd rm-automation/rm-automation-community-rest-api
- mvn clean install -Pinstall-alfresco,apply-rm-community -Dinstaller.url=https://releases.alfresco.com/Enterprise-5.2/5.2.7/5.2.7/build-00025/ALL/alfresco-content-services-installer-5.2.7-linux-x64.bin
script: script:
- echo "Community Rest API Tests" - echo "Community Rest API Tests"
- name: "Enterprise Rest API Tests" - name: "Enterprise Rest API Tests"

View File

@@ -94,6 +94,46 @@
<id>install-alfresco</id> <id>install-alfresco</id>
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.31.0</version>
<executions>
<execution>
<id>start-postgresql</id>
<phase>generate-test-resources</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<images>
<image>
<alias>test-database</alias>
<name>postgres:9.1</name>
<run>
<ports>
<port>5432:5432</port>
</ports>
<env>
<POSTGRES_PASSWORD>alfresco</POSTGRES_PASSWORD>
<POSTGRES_USER>alfresco</POSTGRES_USER>
<POSTGRES_DB>alfresco</POSTGRES_DB>
</env>
<cmd>
<shell>-c max_connections=300</shell>
</cmd>
<wait>
<log>database system is ready to accept connections</log>
<time>20000</time>
</wait>
</run>
</image>
</images>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<executions> <executions>