mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
Add release stage in Travis (#282)[no-release]
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>
|
26
.travis.yml
26
.travis.yml
@@ -3,6 +3,7 @@ sudo: required
|
||||
language: java
|
||||
jdk:
|
||||
- openjdk8
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
@@ -15,12 +16,19 @@ branches:
|
||||
- master
|
||||
- /support\/.*/
|
||||
|
||||
stages:
|
||||
- test
|
||||
- release
|
||||
|
||||
before_install:
|
||||
- docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:10.1 postgres -c 'max_connections=300'
|
||||
|
||||
matrix:
|
||||
install: travis_retry mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- name: "WhiteSource scan"
|
||||
- stage: test
|
||||
name: "WhiteSource scan"
|
||||
# only on support branches or master and if it is not a PR
|
||||
if: fork = false AND (branch = master OR branch =~ /support\/SP\/.*/) AND type != pull_request
|
||||
script:
|
||||
@@ -38,5 +46,15 @@ matrix:
|
||||
script: travis_wait 20 mvn test -B -Dtest=AppContext04TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
|
||||
- name: "AppContextExtraTestSuite"
|
||||
script: travis_wait 20 mvn test -B -Dtest=AppContextExtraTestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
|
||||
|
||||
install: travis_retry mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||
- stage: release
|
||||
name: "Push to Nexus"
|
||||
if: fork = false AND (branch = master OR branch =~ /support\/.*/) 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}"
|
||||
# Add email to link commits to user
|
||||
- git config user.email "${GIT_EMAIL}"
|
||||
# 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
|
||||
|
11
pom.xml
11
pom.xml
@@ -12,19 +12,19 @@
|
||||
</parent>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:Alfresco/alfresco-remote-api.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:Alfresco/alfresco-remote-api.git</developerConnection>
|
||||
<connection>scm:git:https://github.com/Alfresco/alfresco-remote-api.git</connection>
|
||||
<developerConnection>scm:git:https://github.com/Alfresco/alfresco-remote-api.git</developerConnection>
|
||||
<url>https://github.com/Alfresco/alfresco-remote-api</url>
|
||||
<tag>HEAD</tag>
|
||||
</scm>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>alfresco-internal</id>
|
||||
<id>alfresco-public</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/repositories/releases</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>alfresco-internal-snapshots</id>
|
||||
<id>alfresco-public</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/repositories/snapshots</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
@@ -38,6 +38,9 @@
|
||||
<dependency.alfresco-repository.version>6.56.5.0</dependency.alfresco-repository.version>
|
||||
<dependency.alfresco-core.version>7.3</dependency.alfresco-core.version>
|
||||
<dependency.alfresco-data-model.version>8.9</dependency.alfresco-data-model.version>
|
||||
|
||||
<maven.build.sourceVersion>1.8</maven.build.sourceVersion>
|
||||
|
||||
<dependency.alfresco-pdf-renderer.version>1.1</dependency.alfresco-pdf-renderer.version>
|
||||
<dependency.jackson.version>2.9.5</dependency.jackson.version>
|
||||
|
||||
|
Reference in New Issue
Block a user