Files
alfresco-community-repo/.travis.yml
Cezar.Leahu 3e57490e04 APPS-900 APPS-894 APPS-889 Simplify maven POM setup. Reorganize build stages
* remove unnecessary build environment variables
* add a LOG_WARN environment variable - for shorter build commands
* split the `release.sh` script into `community_release.sh` and `enterprise_release.sh`
* remove usage of the `-Dcommunity` build variable where not needed - use/exclude the `-Penterprise` profile explicitly where needed
* modify the Travis `install` phase on some jobs so it runs a basic Java compilation of the project (without docker)
* remove the *internal* profile and renamed the *master* profile into *publish-docker-latest*
* modifiy the profiles for the docker builds so that the same profile handles both community (DockerHub&Quay) and enteprise (only Quay) docker image deploys
* run all the _Unit&Integration Tests_ across community&enteprise in one single job, in parallel with the REST API & UI test suites (APPS-889)
* reorganize the job order so that the *Tests* stage is the first one executed (APPS-894)
* only run the *Maven&Docker deploy* tasks on the *master* & *release* branches after the *Tests* stage (APPS-894)
2021-03-25 13:14:32 +02:00

52 lines
1.5 KiB
YAML

---
import:
- source: travis/.travis.env-vars.yml
- source: travis/.travis.tests-stage.yml
- source: travis/.travis.integration-test-MySQL.yml
- source: travis/.travis.deploy-stage.yml
- source: travis/.travis.release-stage.yml
- source: travis/.travis.publish-stage.yml
dist: xenial
sudo: required
language: java
jdk: openjdk11
services:
- docker
git:
depth: false
quiet: true
branches:
only:
- master
- /release\/.*/
- /feature\/.*/
- /merge\/.*/
- /hotfix\/.*/
cache:
directories:
- ${HOME}/.m2/repository
before_cache: rm -rf ${HOME}/.m2/repository/org/alfresco/alfresco-governance-services*
before_install:
- mkdir -p "${HOME}/.m2" && cp -f .travis.settings.xml "${HOME}/.m2/settings.xml"
- find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
- echo "${DOCKERHUB_PASSWORD}" | docker login -u="${DOCKERHUB_USERNAME}" --password-stdin
- echo "${QUAY_PASSWORD}" | docker login -u="${QUAY_USERNAME}" --password-stdin quay.io
install: skip
stages:
- name: Tests
if: commit_message !~ /\[skip tests\]/
- name: Deploy
if: fork = false AND (branch = master OR branch =~ /release\/.*/) AND type != pull_request
- name: Release
if: fork = false AND (branch = master OR branch =~ /release\/.*/) AND type != pull_request AND commit_message =~ /\[(community|enterprise) release .*\]/
- name: Publish
if: fork = false AND (branch = master OR branch =~ /release\/.*/) AND type != pull_request AND commit_message =~ /\[publish\]/