mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
configure AGS community build
This commit is contained in:
38
.travis.settings.xml
Normal file
38
.travis.settings.xml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<settings>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>alfresco-internal</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>alfresco-internal</id>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
<name>Alfresco Internal Repository</name>
|
||||||
|
<url>https://artifacts.alfresco.com/nexus/content/groups/internal</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<pluginRepositories>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>alfresco-internal</id>
|
||||||
|
<name>Alfresco Internal Repository</name>
|
||||||
|
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
|
||||||
|
</pluginRepository>
|
||||||
|
</pluginRepositories>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
|
<servers>
|
||||||
|
<server>
|
||||||
|
<id>alfresco-internal</id>
|
||||||
|
<username>${env.MAVEN_USERNAME}</username>
|
||||||
|
<password>${env.MAVEN_PASSWORD}</password>
|
||||||
|
</server>
|
||||||
|
</servers>
|
||||||
|
</settings>
|
16
.travis.yml
16
.travis.yml
@@ -13,6 +13,7 @@ branches:
|
|||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.m2
|
- $HOME/.m2
|
||||||
|
|
||||||
# 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*
|
||||||
@@ -27,14 +28,20 @@ stages:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: Build AGS
|
|
||||||
- name: "Build AGS Community"
|
- name: "Build AGS Community"
|
||||||
- before_install: bash scripts/setUpMavenPhase.sh
|
stage: Build AGS
|
||||||
- script:
|
before_install: bash scripts/setUpMavenPhase.sh
|
||||||
- travis_wait 60 mvn -B ${mavenPhase} -P${buildProfile} -Dimage.tag=${latestImageTag} -Dskip.integrationtests=false -Dcommunity -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
script:
|
||||||
|
- echo "Maven phase" ${mavenPhase}
|
||||||
|
- travis_wait 60 mvn -B ${mavenPhase} -Dskip.integrationtests=false -Dcommunity -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||||
|
|
||||||
- name: "Build AGS Enterprise"
|
- name: "Build AGS Enterprise"
|
||||||
|
stage: Build AGS
|
||||||
|
before_install: bash scripts/setUpMavenPhase.sh
|
||||||
|
|
||||||
- name: "AGS Benchmark"
|
- name: "AGS Benchmark"
|
||||||
|
stage: Build AGS
|
||||||
|
before_install: bash scripts/setUpMavenPhase.sh
|
||||||
|
|
||||||
- stage: Tests
|
- stage: Tests
|
||||||
- name: "Community Integrations Tests on MySQL"
|
- name: "Community Integrations Tests on MySQL"
|
||||||
@@ -54,5 +61,6 @@ jobs:
|
|||||||
|
|
||||||
- stage: Publish
|
- stage: Publish
|
||||||
- name: "Copy to S3 Release Bucket"
|
- name: "Copy to S3 Release Bucket"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
|
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
|
12
scripts/setUpMavenPhase.sh
Normal file
12
scripts/setUpMavenPhase.sh
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
echo "Branch name: ${TRAVIS_BRANCH}"
|
||||||
|
|
||||||
|
if [ "${TRAVIS_BRANCH}" == "master" ];
|
||||||
|
then
|
||||||
|
export mavenPhase="deploy"
|
||||||
|
elif [[ ${TRAVIS_BRANCH} = release* ]];
|
||||||
|
then
|
||||||
|
export mavenPhase="deploy"
|
||||||
|
else
|
||||||
|
export mavenPhase="verify"
|
||||||
|
fi
|
Reference in New Issue
Block a user