diff --git a/.travis.settings.xml b/.travis.settings.xml new file mode 100644 index 0000000000..3c61da4f43 --- /dev/null +++ b/.travis.settings.xml @@ -0,0 +1,58 @@ + + + + alfresco-internal + + true + + + + alfresco-internal + + true + + + true + + Alfresco Internal Repository + https://artifacts.alfresco.com/nexus/content/groups/internal + + + + + alfresco-internal + Alfresco Internal Repository + https://artifacts.alfresco.com/nexus/content/groups/internal + + + alfresco-public + Alfresco Public Repository + https://artifacts.alfresco.com/nexus/content/groups/public + + + alfresco-private + Alfresco Private Repository + https://artifacts.alfresco.com/nexus/content/groups/private + + + + + + + + docker.io + ${env.DOCKERHUB_USERNAME} + ${env.DOCKERHUB_PASSWORD} + + + alfresco-internal + ${env.MAVEN_USERNAME} + ${env.MAVEN_PASSWORD} + + + alfresco-private + ${env.MAVEN_USERNAME} + ${env.MAVEN_PASSWORD} + + + diff --git a/.travis.yml b/.travis.yml index 18ec2c1736..ae2b234671 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,94 @@ +os: linux +dist: xenial language: java jdk: - openjdk11 -sudo: false -install: true -script: travis_wait 35 mvn -B clean verify -Dcommunity \ No newline at end of file + +branches: + only: + - /release\/V2.7.*/ + - /feature-2.7\/.*/ + - /merge-2.7\/.*/ + - /hotfix-2.7\/.*/ + +cache: + directories: + - $HOME/.m2 +# the cache can grow constantly +before_cache: + - rm -rf $HOME/.m2/repository/org/alfresco/alfresco-rm* + +before_install: + - "cp .travis.settings.xml $HOME/.m2/settings.xml" +install: skip + +stages: + - name: Build AGS + - name: Tests + if: commit_message !~ /\[skip tests\]/ + - name: Security Scans + - name: Release + - name: Publish + +jobs: + include: + - name: "Build Community" + stage: Build AGS + script: + - echo "Build Community" + - name: "Build Enterprise" + stage: Build AGS + script: + - echo "Build Enterprise" + - name: "Benchmark" + stage: Build AGS + script: + - echo "Benchmark" + + - name: "Community Integrations Tests on MySQL" + stage: Tests + script: + - echo "Community Integrations Tests on MySQL" + - name: "Enterprise Integrations Tests on MySQL" + stage: Tests + script: + - echo "Enterprise Integrations Tests on MySQL" + - name: "Community Rest API Tests" + stage: Tests + script: + - echo "Community Rest API Tests" + - name: "Enterprise Rest API Tests" + stage: Tests + script: + - echo "Enterprise Rest API Tests" + - name: "Community UI Tests ..." + stage: Tests + script: + - echo "Community UI Tests ..." + - name: "Enterprise UI Tests ..." + stage: Tests + script: + - echo "Enterprise UI Tests ..." + + - name: "Source Clear Scan (SCA)" + stage: Security Scans + script: + - echo "Source Clear Scan (SCA)" + - name: "Static Analysis (SAST)" + stage: Security Scans + script: + - echo "Static Analysis (SAST)" + + - name: "Community Release" + stage: Release + script: + - echo "Community Release" + - name: "Enterprise Release" + stage: Release + script: + - echo "Enterprise Release" + + - name: "Copy to S3 Release Bucket" + stage: Publish + script: + - echo "Copy to S3 Release Bucket"