66
77steps :
88 - name : setup
9- image : joomlaprojects/docker-images:php8.3
9+ image : joomlaprojects/docker-images:php8.4
1010 volumes :
1111 - name : certificates
1212 path : /certificates
1313 commands :
1414 - cp -v tests/certs/* /certificates/
1515
1616 - name : composer
17- image : joomlaprojects/docker-images:php8.3
17+ image : joomlaprojects/docker-images:php8.4
1818 volumes :
1919 - name : composer-cache
2020 path : /tmp/composer-cache
@@ -70,6 +70,13 @@ steps:
7070 - php -v
7171 - ./libraries/vendor/bin/phpunit --testsuite Unit
7272
73+ - name : php84-unit
74+ depends_on : [ phpcs ]
75+ image : joomlaprojects/docker-images:php8.4
76+ commands :
77+ - php -v
78+ - ./libraries/vendor/bin/phpunit --testsuite Unit
79+
7380 - name : php81-integration
7481 depends_on : [ npm ]
7582 image : joomlaprojects/docker-images:php8.1
@@ -91,6 +98,13 @@ steps:
9198 - php -v
9299 - ./libraries/vendor/bin/phpunit --testsuite Integration
93100
101+ - name : php84-integration
102+ depends_on : [ npm ]
103+ image : joomlaprojects/docker-images:php8.4
104+ commands :
105+ - php -v
106+ - ./libraries/vendor/bin/phpunit --testsuite Integration
107+
94108 - name : php81-integration-pgsql
95109 depends_on : [ npm ]
96110 image : joomlaprojects/docker-images:php8.1
@@ -112,6 +126,13 @@ steps:
112126 - php -v
113127 - ./libraries/vendor/bin/phpunit --testsuite Integration --configuration phpunit-pgsql.xml.dist
114128
129+ - name : php84-integration-pgsql
130+ depends_on : [ npm ]
131+ image : joomlaprojects/docker-images:php8.4
132+ commands :
133+ - php -v
134+ - ./libraries/vendor/bin/phpunit --testsuite Integration --configuration phpunit-pgsql.xml.dist
135+
115136 - name : scss-cs
116137 depends_on : [ npm ]
117138 image : node:current-alpine
@@ -128,14 +149,14 @@ steps:
128149 - name : prepare_system_tests
129150 depends_on :
130151 - npm
131- image : joomlaprojects/docker-images:systemtests8.1
152+ image : joomlaprojects/docker-images:cypress8.4
132153 volumes :
133154 - name : cypress-cache
134155 path : /root/.cache/Cypress
135156 environment :
136157 CYPRESS_VERIFY_TIMEOUT : 100000
137158 commands :
138- - mv cypress.config.dist.mjs cypress.config.mjs
159+ - cp cypress.config.dist.mjs cypress.config.mjs
139160 - npx cypress install
140161 - npx cypress verify
141162
@@ -149,42 +170,24 @@ steps:
149170 environment :
150171 JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK : 1
151172 commands :
152- - bash tests/System/drone-system-run .sh "$(pwd)" cmysql mysqli mysql
173+ - bash tests/System/entrypoint .sh "$(pwd)" cmysql mysqli mysql
153174
154175 - name : phpmax-system-mysql
155176 depends_on :
156177 - phpmin-system-mysql
157- image : joomlaprojects/docker-images:cypress8.2
178+ image : joomlaprojects/docker-images:cypress8.4
158179 volumes :
159180 - name : cypress-cache
160181 path : /root/.cache/Cypress
161182 environment :
162183 JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK : 1
163184 commands :
164- - bash tests/System/drone-system-run .sh "$(pwd)" cmysqlmax mysqli mysql
185+ - bash tests/System/entrypoint .sh "$(pwd)" cmysqlmax mysqli mysql
165186 when :
166187 event :
167188 exclude :
168189 - pull_request
169190
170- - name : phpnext-system-mysql
171- depends_on :
172- - phpmax-system-mysql
173- image : joomlaprojects/docker-images:cypress8.3
174- volumes :
175- - name : cypress-cache
176- path : /root/.cache/Cypress
177- environment :
178- JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK : 1
179- failure : ignore
180- commands :
181- - echo "This test is disabled because php next is not stable yet"
182- - exit 1
183- - bash tests/System/drone-system-run.sh "$(pwd)" cmysqlnext mysqli mysql
184- when :
185- event :
186- exclude :
187- - pull_request
188191
189192 - name : phpmin-system-postgres
190193 depends_on :
@@ -196,7 +199,7 @@ steps:
196199 environment :
197200 JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK : 1
198201 commands :
199- - bash tests/System/drone-system-run .sh "$(pwd)" cpostgres pgsql postgres
202+ - bash tests/System/entrypoint .sh "$(pwd)" cpostgres pgsql postgres
200203 when :
201204 event :
202205 exclude :
@@ -205,39 +208,18 @@ steps:
205208 - name : phpmax-system-postgres
206209 depends_on :
207210 - phpmin-system-postgres
208- image : joomlaprojects/docker-images:cypress8.2
209- volumes :
210- - name : cypress-cache
211- path : /root/.cache/Cypress
212- environment :
213- JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK : 1
214- commands :
215- - bash tests/System/drone-system-run.sh "$(pwd)" cpostgresmax pgsql postgres
216-
217- - name : phpnext-system-postgres
218- depends_on :
219- - phpmax-system-postgres
220- image : joomlaprojects/docker-images:cypress8.3
211+ image : joomlaprojects/docker-images:cypress8.4
221212 volumes :
222213 - name : cypress-cache
223214 path : /root/.cache/Cypress
224215 environment :
225216 JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK : 1
226- failure : ignore
227217 commands :
228- - echo "This test is disabled because php next is not stable yet"
229- - exit 1
230- - bash tests/System/drone-system-run.sh "$(pwd)" cpostgresnext pgsql postgres
231- when :
232- event :
233- exclude :
234- - pull_request
218+ - bash tests/System/entrypoint.sh "$(pwd)" cpostgresmax pgsql postgres
235219
236220 - name : artifacts-system-tests
237221 image : joomlaprojects/docker-images:packager
238222 depends_on :
239- - phpnext-system-mysql
240- - phpnext-system-postgres
241223 - phpmax-system-mysql
242224 - phpmax-system-postgres
243225 - phpmin-system-mysql
@@ -410,15 +392,16 @@ steps:
410392 - rclone delete nightly:/home/devj/public_html/nightlies/ --include "Joomla_$MINORVERSION.*"
411393 - rclone delete nightly:/home/devj/public_html/cache/com_content/
412394 - rclone copy ./transfer/ nightly:/home/devj/public_html/nightlies/
413- - curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 5.2 ](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK
395+ - curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla ${MINORVERSION} ](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK
414396
415397 - name : buildfailure
416398 image : joomlaprojects/docker-images:packager
417399 environment :
418400 MATTERMOST_NIGHTLY_HOOK :
419401 from_secret : mattermost_nightly_hook
420402 commands :
421- - curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 5.2](https://developer.joomla.org/nightly-builds.html) FAILED to build."}' $MATTERMOST_NIGHTLY_HOOK
403+ - export MINORVERSION=${DRONE_BRANCH%-*}
404+ - curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla ${MINORVERSION}](https://developer.joomla.org/nightly-builds.html) FAILED to built."}' $MATTERMOST_NIGHTLY_HOOK
422405 when :
423406 status :
424407 - failure
@@ -432,6 +415,6 @@ trigger:
432415
433416---
434417kind : signature
435- hmac : 10ae86041b814459e0a4618a7fa2356480177af7966412cc050e9902e9384cbe
418+ hmac : 99da78521b10f37ddf6731e695fe52f85ee3db142bccac66901ae5372e332aae
436419
437420...
0 commit comments