mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
Travis release for 7.5.N (#66) [ci skip]
This commit is contained in:
10
.travis.settings.xml
Normal file
10
.travis.settings.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<settings>
|
||||||
|
<!-- required to push artifacts to repositories -->
|
||||||
|
<servers>
|
||||||
|
<server>
|
||||||
|
<id>alfresco-public</id>
|
||||||
|
<username>${env.MAVEN_USERNAME}</username>
|
||||||
|
<password>${env.MAVEN_PASSWORD}</password>
|
||||||
|
</server>
|
||||||
|
</servers>
|
||||||
|
</settings>
|
19
.travis.yml
19
.travis.yml
@@ -15,9 +15,14 @@ branches:
|
|||||||
|
|
||||||
install: travis_retry mvn install -DskipTests=true -B -V
|
install: travis_retry mvn install -DskipTests=true -B -V
|
||||||
|
|
||||||
matrix:
|
stages:
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
|
||||||
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: "Build and test"
|
- stage: test
|
||||||
|
name: "Build and test"
|
||||||
script: travis_retry mvn test
|
script: travis_retry mvn test
|
||||||
- name: "WhiteSource scan"
|
- name: "WhiteSource scan"
|
||||||
# only on support branches or master and if it is not a PR
|
# only on support branches or master and if it is not a PR
|
||||||
@@ -27,3 +32,13 @@ matrix:
|
|||||||
- curl -LJO https://github.com/whitesource/unified-agent-distribution/raw/master/standAlone/wss-unified-agent.jar
|
- curl -LJO https://github.com/whitesource/unified-agent-distribution/raw/master/standAlone/wss-unified-agent.jar
|
||||||
# Run WhiteSource Unified Agent
|
# Run WhiteSource Unified Agent
|
||||||
- java -jar wss-unified-agent.jar -apiKey ${WHITESOURCE_API_KEY} -c .wss-unified-agent.config
|
- java -jar wss-unified-agent.jar -apiKey ${WHITESOURCE_API_KEY} -c .wss-unified-agent.config
|
||||||
|
- stage: release
|
||||||
|
name: "Push to Nexus"
|
||||||
|
if: fork = false AND branch = master AND type != pull_request AND commit_message !~ /\[no-release\]/
|
||||||
|
before_install:
|
||||||
|
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
|
||||||
|
script:
|
||||||
|
# Use full history for release
|
||||||
|
- git checkout -B "${TRAVIS_BRANCH}"
|
||||||
|
# Skip building of release commits
|
||||||
|
- mvn --batch-mode -q -DscmCommentPrefix="[maven-release-plugin][skip ci] " -Dusername="${GIT_USERNAME}" -Dpassword="${GIT_PASSWORD}" -DskipTests -Darguments=-DskipTests release:clean release:prepare release:perform
|
7
pom.xml
7
pom.xml
@@ -20,18 +20,15 @@
|
|||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>alfresco-internal</id>
|
<id>alfresco-public</id>
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/repositories/releases</url>
|
<url>https://artifacts.alfresco.com/nexus/content/repositories/releases</url>
|
||||||
</repository>
|
</repository>
|
||||||
<snapshotRepository>
|
|
||||||
<id>alfresco-internal-snapshots</id>
|
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/repositories/snapshots</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<dependency.spring.version>5.0.4.RELEASE</dependency.spring.version>
|
<dependency.spring.version>5.0.4.RELEASE</dependency.spring.version>
|
||||||
<dependency.surf.version>6.8</dependency.surf.version>
|
<dependency.surf.version>6.8</dependency.surf.version>
|
||||||
|
<maven.build.sourceVersion>11</maven.build.sourceVersion>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
Reference in New Issue
Block a user