mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
This PR moved the internal tests based on TAS (Test Automation System) close to the source code. The TAS framework lies in separate repositories: https://github.com/Alfresco/alfresco-tas-restapi https://github.com/Alfresco/alfresco-tas-utility https://github.com/Alfresco/alfresco-tas-email https://github.com/Alfresco/alfresco-tas-ftp https://github.com/Alfresco/alfresco-tas-webdav https://github.com/Alfresco/alfresco-tas-cmis https://github.com/AlfrescoTestAutomation/dataprep
74 lines
3.4 KiB
YAML
74 lines
3.4 KiB
YAML
dist: xenial
|
|
sudo: required
|
|
language: java
|
|
jdk:
|
|
- openjdk11
|
|
|
|
services:
|
|
- docker
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.m2
|
|
|
|
env:
|
|
global:
|
|
- VERSION_EDITION=Community
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
matrix:
|
|
include:
|
|
- name: "WhiteSource scan"
|
|
# only on master and if it is not a PR
|
|
if: fork = false AND branch = master AND type != pull_request
|
|
install:
|
|
- travis_retry travis_wait 30 mvn -q install "-Dversion.edition=${VERSION_EDITION}" -f war/pom.xml
|
|
script:
|
|
# Download the latest version of WhiteSource Unified Agent
|
|
- curl -LJO https://github.com/whitesource/unified-agent-distribution/raw/master/standAlone/wss-unified-agent.jar
|
|
# Run WhiteSource Unified Agent
|
|
- java -jar wss-unified-agent.jar -apiKey ${WHITESOURCE_API_KEY} -c .wss-unified-agent.config -d ./war
|
|
- name: "REST API TAS tests"
|
|
jdk: openjdk11
|
|
install:
|
|
- travis_retry travis_wait 40 mvn install -q "-Dversion.edition=${VERSION_EDITION}" -Dmaven.javadoc.skip=true -PcommunityDocker
|
|
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-minimal+transforms.yml
|
|
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
|
|
script:
|
|
- travis_wait 60 mvn install -q -f tests/tas-restapi/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
|
|
- name: "CMIS TAS tests"
|
|
jdk: openjdk11
|
|
install:
|
|
- travis_retry travis_wait 40 mvn install -q "-Dversion.edition=${VERSION_EDITION}" -Dmaven.javadoc.skip=true -PcommunityDocker
|
|
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-minimal+transforms.yml
|
|
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
|
|
script:
|
|
- travis_wait 40 mvn install -q -f tests/tas-cmis/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
|
|
- name: "Email TAS tests"
|
|
jdk: openjdk11
|
|
install:
|
|
- travis_retry travis_wait 40 mvn install -q "-Dversion.edition=${VERSION_EDITION}" -Dmaven.javadoc.skip=true -PcommunityDocker
|
|
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-minimal.yml
|
|
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
|
|
script:
|
|
- travis_wait 30 mvn install -q -f tests/tas-email/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
|
|
- name: "WebDAV TAS tests"
|
|
jdk: openjdk11
|
|
install:
|
|
- travis_retry travis_wait 40 mvn install -q "-Dversion.edition=${VERSION_EDITION}" -Dmaven.javadoc.skip=true -PcommunityDocker
|
|
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-minimal.yml
|
|
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
|
|
script:
|
|
- travis_wait 30 mvn install -q -f tests/tas-webdav/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
|
|
- name: "Integration TAS tests"
|
|
jdk: openjdk11
|
|
install:
|
|
- travis_retry travis_wait 40 mvn install -q "-Dversion.edition=${VERSION_EDITION}" -Dmaven.javadoc.skip=true -PcommunityDocker
|
|
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-minimal.yml
|
|
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
|
|
script:
|
|
- travis_wait 30 mvn install -q -f tests/tas-integration/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
|