Skip to content

Commit 3704110

Browse files
HackwarLlewellynvdm
authored andcommitted
Updating dependencies, drone setup and adding phan setup
1 parent 0b2bbd6 commit 3704110

18 files changed

Lines changed: 1223 additions & 1197 deletions

.drone.jsonnet

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ local composer(phpversion, params) = {
2626
local phpunit_common(phpversion) = {
2727
name: 'PHPUnit',
2828
image: 'joomlaprojects/docker-images:php' + phpversion,
29-
[if phpversion == '8.2' then 'failure']: 'ignore',
29+
[if phpversion == '8.3' then 'failure']: 'ignore',
3030
commands: [
3131
'vendor/bin/phpunit --configuration phpunit.xml.dist --testdox',
3232
],
@@ -35,7 +35,7 @@ local phpunit_common(phpversion) = {
3535
local phpunit_mysql(phpversion, driver) = {
3636
name: 'PHPUnit',
3737
image: 'joomlaprojects/docker-images:php' + phpversion,
38-
[if phpversion == '8.2' then 'failure']: 'ignore',
38+
[if phpversion == '8.3' then 'failure']: 'ignore',
3939
commands: [
4040
'php --ri ' + driver + ' || true',
4141
'sleep 20',
@@ -46,7 +46,7 @@ local phpunit_mysql(phpversion, driver) = {
4646
local phpunit(phpversion, driver) = {
4747
name: 'PHPUnit',
4848
image: 'joomlaprojects/docker-images:php' + phpversion,
49-
[if phpversion == '8.2' then 'failure']: 'ignore',
49+
[if phpversion == '8.3' then 'failure']: 'ignore',
5050
commands: [
5151
'php --ri ' + driver + ' || true',
5252
'vendor/bin/phpunit --configuration phpunit.' + driver + '.xml.dist --testdox',
@@ -214,8 +214,7 @@ local pipeline_sqlsrv(phpversion, driver, dbversion, params) = {
214214
volumes: volumes,
215215
commands: [
216216
'php -v',
217-
'composer update',
218-
'composer require phpmd/phpmd phpstan/phpstan',
217+
'composer update'
219218
],
220219
},
221220
{
@@ -228,15 +227,11 @@ local pipeline_sqlsrv(phpversion, driver, dbversion, params) = {
228227
},
229228
{
230229
name: 'phpmd',
231-
image: 'joomlaprojects/docker-images:php8.1',
230+
image: 'joomlaprojects/docker-images:php8.1-ast',
232231
depends: [ 'composer' ],
233232
failure: 'ignore',
234233
commands: [
235-
'vendor/bin/phpmd src text cleancode',
236-
'vendor/bin/phpmd src text codesize',
237-
'vendor/bin/phpmd src text controversial',
238-
'vendor/bin/phpmd src text design',
239-
'vendor/bin/phpmd src text unusedcode',
234+
'vendor/bin/phan'
240235
],
241236
},
242237
{
@@ -269,21 +264,21 @@ local pipeline_sqlsrv(phpversion, driver, dbversion, params) = {
269264
],
270265
},
271266
pipeline_sqlite('8.1', 'sqlite', '--prefer-stable'),
272-
pipeline_sqlite('8.2', 'sqlite', '--prefer-stable --ignore-platform-reqs'),
267+
pipeline_sqlite('8.2', 'sqlite', '--prefer-stable'),
273268
pipeline_mysql('8.1', 'mysql', '5.7', '--prefer-stable'),
274-
pipeline_mysql('8.2', 'mysql', '5.7', '--prefer-stable --ignore-platform-reqs'),
269+
pipeline_mysql('8.2', 'mysql', '5.7', '--prefer-stable'),
275270
pipeline_mysql('8.1', 'mysql', '8.0', '--prefer-stable'),
276-
pipeline_mysql('8.2', 'mysql', '8.0', '--prefer-stable --ignore-platform-reqs'),
271+
pipeline_mysql('8.2', 'mysql', '8.0', '--prefer-stable'),
277272
pipeline_mysql('8.1', 'mysqli', '5.7', '--prefer-stable'),
278-
pipeline_mysql('8.2', 'mysqli', '5.7', '--prefer-stable --ignore-platform-reqs'),
273+
pipeline_mysql('8.2', 'mysqli', '5.7', '--prefer-stable'),
279274
pipeline_mysql('8.1', 'mysqli', '8.0', '--prefer-stable'),
280-
pipeline_mysql('8.2', 'mysqli', '8.0', '--prefer-stable --ignore-platform-reqs'),
275+
pipeline_mysql('8.2', 'mysqli', '8.0', '--prefer-stable'),
281276
pipeline_mariadb('8.1', 'mariadb', '10.2', '--prefer-stable'),
282-
pipeline_mariadb('8.2', 'mariadb', '10.2', '--prefer-stable --ignore-platform-reqs'),
277+
pipeline_mariadb('8.2', 'mariadb', '10.2', '--prefer-stable'),
283278
pipeline_postgres('8.1', 'pgsql', '10', '--prefer-stable'),
284-
pipeline_postgres('8.2', 'pgsql', '10', '--prefer-stable --ignore-platform-reqs'),
279+
pipeline_postgres('8.2', 'pgsql', '10', '--prefer-stable'),
285280
pipeline_postgres('8.1', 'pgsql', '11', '--prefer-stable'),
286-
pipeline_postgres('8.2', 'pgsql', '11', '--prefer-stable --ignore-platform-reqs'),
281+
pipeline_postgres('8.2', 'pgsql', '11', '--prefer-stable'),
287282
pipeline_sqlsrv('8.1', 'sqlsrv', '2017-latest', '--prefer-stable'),
288-
pipeline_sqlsrv('8.2', 'sqlsrv', '2017-latest', '--prefer-stable --ignore-platform-reqs'),
283+
pipeline_sqlsrv('8.2', 'sqlsrv', '2017-latest', '--prefer-stable'),
289284
]

0 commit comments

Comments
 (0)