diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..0da5a3c5 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +default_language_version: + # force all unspecified python hooks to run python3 + python: python3 + +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.4.0 + hooks: + - id: check-yaml + args: [--allow-multiple-documents] \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..b88dfb9e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,52 @@ +import: + - source: Alfresco/alfresco-build-tools:.travis.java.yml@v1.0.1 + +dist: focal + +git: + depth: false + quiet: true + +branches: + only: + - master + - /feature\/.*/ + - /fix\/.*/ + +stages: + - name: test + if: commit_message !~ /\[skip tests\]/ + - name: release + if: commit_message ~= /\[release\]/ AND branch = master AND type != push AND type != pull_request AND fork = false + +env: + global: + - MAVEN_INSTALL_CMD="mvn clean install -B" + +jobs: + include: + + - name: "default version" + stage: test + script: + - ${MAVEN_INSTALL_CMD} + + - name: "6.2 Enterprise" + stage: test + script: + - ${MAVEN_INSTALL_CMD} -Penterprise-62-tests + + - name: "6.2 Community" + stage: test + script: + - ${MAVEN_INSTALL_CMD} -Pcommunity-62-tests + + - name: "6.1 Enterprise" + stage: test + script: + - ${MAVEN_INSTALL_CMD} -Penterprise-61-tests + + - name: "6.1 Community" + stage: test + script: + - ${MAVEN_INSTALL_CMD} -Pcommunity-61-tests diff --git a/pom.xml b/pom.xml index cadf9869..10ce20bd 100644 --- a/pom.xml +++ b/pom.xml @@ -241,6 +241,15 @@ + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + alfresco-public https://artifacts.alfresco.com/nexus/content/groups/public @@ -254,6 +263,11 @@ true + + alfresco-private-repository + https://artifacts.alfresco.com/nexus/content/groups/private + + activiti-private-repository diff --git a/settings.xml b/settings.xml new file mode 100644 index 00000000..14c9a005 --- /dev/null +++ b/settings.xml @@ -0,0 +1,42 @@ + + + + + + alfresco-private-repository + ${env.MAVEN_USERNAME} + ${env.MAVEN_PASSWORD} + + + activiti-private-repository + ${env.MAVEN_USERNAME} + ${env.MAVEN_PASSWORD} + + + alfresco-public-snapshots + ${env.MAVEN_USERNAME} + ${env.MAVEN_PASSWORD} + + + alfresco-public + ${env.MAVEN_USERNAME} + ${env.MAVEN_PASSWORD} + + + alfresco-plugin-public + ${env.MAVEN_USERNAME} + ${env.MAVEN_PASSWORD} + + + alfresco-plugin-public-snapshots + ${env.MAVEN_USERNAME} + ${env.MAVEN_PASSWORD} + + + alfresco-internal-snapshots + ${env.MAVEN_USERNAME} + ${env.MAVEN_PASSWORD} + + +