diff --git a/.travis.settings.xml b/.travis.settings.xml
new file mode 100644
index 0000000000..e8f1196935
--- /dev/null
+++ b/.travis.settings.xml
@@ -0,0 +1,10 @@
+
+
+
+
+ alfresco-public
+ ${env.MAVEN_USERNAME}
+ ${env.MAVEN_PASSWORD}
+
+
+
diff --git a/.travis.yml b/.travis.yml
index 24d09d3bd7..af621b826f 100644
--- a/.travis.yml
+++ b/.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
diff --git a/pom.xml b/pom.xml
index b9b4c2beab..f6eefd8792 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,19 +12,19 @@
- scm:git:git@github.com:Alfresco/alfresco-remote-api.git
- scm:git:git@github.com:Alfresco/alfresco-remote-api.git
+ scm:git:https://github.com/Alfresco/alfresco-remote-api.git
+ scm:git:https://github.com/Alfresco/alfresco-remote-api.git
https://github.com/Alfresco/alfresco-remote-api
HEAD
- alfresco-internal
+ alfresco-public
https://artifacts.alfresco.com/nexus/content/repositories/releases
- alfresco-internal-snapshots
+ alfresco-public
https://artifacts.alfresco.com/nexus/content/repositories/snapshots
@@ -38,6 +38,9 @@
6.56.5.0
7.3
8.9
+
+ 1.8
+
1.1
2.9.5