mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Add Travis configuration
This commit is contained in:
34
packaging/tests/tas-restapi/.travis.yml
Normal file
34
packaging/tests/tas-restapi/.travis.yml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
dist: trusty
|
||||||
|
sudo: required
|
||||||
|
language: java
|
||||||
|
jdk:
|
||||||
|
- openjdk11
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.m2/repository
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
install: travis_retry mvn install -DskipTests=true -B -V
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- stage: test
|
||||||
|
name: "Build and test"
|
||||||
|
script: travis_retry mvn test
|
||||||
|
- stage: release
|
||||||
|
name: "Push to Nexus"
|
||||||
|
if: fork = false AND branch = master AND type != pull_request
|
||||||
|
script:
|
||||||
|
# Use full history for release
|
||||||
|
- git checkout -B "${TRAVIS_BRANCH}"
|
||||||
|
# Skip building of release commits
|
||||||
|
- mvn --batch-mode -DskipTests -Darguments=-DskipTests release:clean release:prepare release:perform \
|
||||||
|
-DscmCommentPrefix="[maven-release-plugin][skip ci] " -Dusername="${GIT_USERNAME}" -Dpassword="${GIT_PASSWORD}"
|
Reference in New Issue
Block a user