forked from Alfresco/acs-packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
169 lines (164 loc) · 8.97 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
dist: xenial
sudo: required
language: java
jdk:
- openjdk11
services:
- docker
cache:
directories:
- $HOME/.m2
# the cache can grow constantly
before_cache:
- rm -rf $HOME/.m2/repository/org/alfresco
branches:
only:
- master
- /support\/.*/
# This should not be required on community build
before_install:
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
matrix:
include:
- name: "WhiteSource scan"
# only on support branches or master and if it is not a PR
if: fork = false AND (branch = master OR branch =~ /support\/.*/) AND type != pull_request
install:
- travis_retry travis_wait 30 mvn -q install -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 part1"
jdk: openjdk11
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-rest-api-tests.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 60 mvn install -f tests/tas-restapi/pom.xml -Pall-tas-tests,run-restapi-part1 -Denvironment=default -DrunBugs=false
- name: "REST API TAS tests part2"
jdk: openjdk11
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-rest-api-tests.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 60 mvn install -f tests/tas-restapi/pom.xml -Pall-tas-tests,run-restapi-part2 -Denvironment=default -DrunBugs=false
- name: "REST API TAS tests part3"
jdk: openjdk11
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-rest-api-tests.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 60 mvn install -f tests/tas-restapi/pom.xml -Pall-tas-tests,run-restapi-part3 -Denvironment=default -DrunBugs=false
- name: "REST API TAS LDAP tests"
jdk: openjdk11
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-rest-api-with-ldap.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 60 mvn install -f tests/tas-restapi/pom.xml -Pall-tas-tests,run-restapi-ldap -Denvironment=default -DrunBugs=false
- name: "CMIS TAS tests"
jdk: openjdk11
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-cmis-tests.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 40 mvn install -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 -PenterpriseDocker
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-email-tests.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 30 mvn install -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 -PenterpriseDocker
- ./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 20 mvn install -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 -PenterpriseDocker
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-integration-tests.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 30 mvn install -f tests/tas-integration/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
- name: "Cluster tests"
jdk: openjdk11
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-cluster.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8081/alfresco"
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 20 mvn install -f tests/tas-cluster/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
- name: "Node restart tests"
jdk: openjdk11
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
script:
# Start Alfresco and test if it is running
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-node-restart.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8081/alfresco"
- ./tests/scripts/node-restart-test.sh
# Restart and test again
- docker-compose --file ./tests/environment/docker-compose-node-restart.yml stop
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-node-restart.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8081/alfresco"
- ./tests/scripts/node-restart-test.sh
- name: "REST API TAS tests with AIMS"
jdk: openjdk11
if: fork = false # AIMS docker image requires access to quay.io
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
- docker login quay.io -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
# AIMS cannot be configured via localhost
- export HOST_IP=$(ip address show | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | head -n 1 )
- export HOST_IP=$(echo ${HOST_IP%/*})
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-aims.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 40 mvn install -f tests/tas-restapi/pom.xml -Pall-tas-tests,run-restapi-aims -Denvironment=aims-environment -DrunBugs=false "-Didentity-service.auth-server-url=http://${HOST_IP}:8999/auth"
- name: "CMIS TAS tests with AIMS"
jdk: openjdk11
if: fork = false # AIMS docker image requires access to quay.io
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
- docker login quay.io -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
# AIMS cannot be configured via localhost
- export HOST_IP=$(ip address show | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | head -n 1 )
- export HOST_IP=$(echo ${HOST_IP%/*})
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-aims.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 40 mvn install -f tests/tas-cmis/pom.xml -Pall-tas-tests,run-tas-cmis-tests-with-aims -Denvironment=aims-environment -DrunBugs=false "-Didentity-service.auth-server-url=http://${HOST_IP}:8999/auth"
- name: "Sync Service TAS tests"
jdk: openjdk11
install:
- travis_retry travis_wait 40 mvn install -q -PenterpriseDocker
- docker login quay.io -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-sync-service.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 20 mvn install -f tests/tas-sync-service/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
- name: "All AMPs tests"
jdk: openjdk11
install:
- travis_retry travis_wait 20 mvn install -q -PenterpriseDocker
- travis_retry travis_wait 20 mvn install -q -f tests/tas-all-amps/pom.xml -DskipTests -Pall-tas-tests,prepare-wars-with-amps
script:
- ./tests/scripts/checkLibraryDuplicates.sh ./tests/tas-all-amps/target/war/alfresco/WEB-INF/lib
- ./tests/scripts/start-compose.sh ./tests/environment/docker-compose-all-amps-test.yml
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
- travis_wait 20 mvn install -f tests/tas-all-amps/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false