mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
build project in before_install phase
This commit is contained in:
21
.travis.yml
21
.travis.yml
@@ -16,18 +16,10 @@ env:
|
|||||||
- AUTOMATION_COMMUNITY_PATH=rm-automation/rm-automation-community-rest-api
|
- AUTOMATION_COMMUNITY_PATH=rm-automation/rm-automation-community-rest-api
|
||||||
- AUTOMATION_ENTERPRISE_PATH=rm-automation/rm-automation-enterprise-rest-api
|
- AUTOMATION_ENTERPRISE_PATH=rm-automation/rm-automation-enterprise-rest-api
|
||||||
- AUTOMATION_UI_PATH=rm-automation/rm-automation-ui
|
- AUTOMATION_UI_PATH=rm-automation/rm-automation-ui
|
||||||
- TARGET=target
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.m2
|
- $HOME/.m2
|
||||||
- rm-community/rm-community-repo/target
|
|
||||||
- rm-community/rm-community-share/target
|
|
||||||
- rm-enterprise/rm-enterprise-repo/target
|
|
||||||
- rm-enterprise/rm-enterprise-share/target
|
|
||||||
- $AUTOMATION_COMMUNITY_PATH/$TARGET
|
|
||||||
- $AUTOMATION_ENTERPRISE_PATH/$TARGET
|
|
||||||
- $AUTOMATION_UI_PATH/$TARGET
|
|
||||||
# the cache can grow constantly
|
# the cache can grow constantly
|
||||||
before_cache:
|
before_cache:
|
||||||
- rm -rf $HOME/.m2/repository/org/alfresco/alfresco-rm*
|
- rm -rf $HOME/.m2/repository/org/alfresco/alfresco-rm*
|
||||||
@@ -52,7 +44,7 @@ jobs:
|
|||||||
- name: "Build Community"
|
- name: "Build Community"
|
||||||
stage: Build AGS
|
stage: Build AGS
|
||||||
script:
|
script:
|
||||||
- travis_retry travis_wait 90 mvn -B clean install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
- echo "Build Community"
|
||||||
- name: "Build Enterprise"
|
- name: "Build Enterprise"
|
||||||
stage: Build AGS
|
stage: Build AGS
|
||||||
script:
|
script:
|
||||||
@@ -72,13 +64,18 @@ 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
|
||||||
before_install: travis_wait 60 bash scripts/downloadInstaller.sh $AUTOMATION_COMMUNITY_PATH/$TARGET
|
before_install:
|
||||||
install:
|
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
||||||
- travis_wait 60 mvn install -Pinstall-alfresco,apply-rm-community -q -f $AUTOMATION_COMMUNITY_PATH/pom.xml
|
- travis_wait 60 bash scripts/downloadInstaller.sh $AUTOMATION_COMMUNITY_PATH/target
|
||||||
|
install: travis_wait 60 mvn install -Pinstall-alfresco,apply-rm-community -q -f $AUTOMATION_COMMUNITY_PATH/pom.xml
|
||||||
script:
|
script:
|
||||||
- echo "Community Rest API Tests"
|
- echo "Community Rest API Tests"
|
||||||
- name: "Enterprise Rest API Tests"
|
- name: "Enterprise Rest API Tests"
|
||||||
stage: Tests
|
stage: Tests
|
||||||
|
before_install:
|
||||||
|
- travis_retry travis_wait 90 mvn -B install -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests -q
|
||||||
|
- travis_wait 60 bash scripts/downloadInstaller.sh $AUTOMATION_ENTERPRISE_PATH/target
|
||||||
|
install: travis_wait 60 mvn install -Pinstall-alfresco,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 ..."
|
||||||
|
Reference in New Issue
Block a user