-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating dependencies, drone setup and adding phan setup (#115)
- Loading branch information
Showing
4 changed files
with
473 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,202 +1,115 @@ | ||
--- | ||
{ | ||
"kind": "pipeline", | ||
"name": "Codequality", | ||
"steps": [ | ||
{ | ||
"commands": [ | ||
"php -v", | ||
"composer update", | ||
"composer require phpmd/phpmd phpstan/phpstan" | ||
], | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "composer", | ||
"volumes": [ | ||
{ | ||
"name": "composer-cache", | ||
"path": "/tmp/composer-cache" | ||
} | ||
] | ||
}, | ||
{ | ||
"commands": [ | ||
"vendor/bin/phpcs --standard=ruleset.xml src/" | ||
], | ||
"depends": [ | ||
"composer" | ||
], | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "phpcs" | ||
}, | ||
{ | ||
"commands": [ | ||
"vendor/bin/phpmd src text cleancode", | ||
"vendor/bin/phpmd src text codesize", | ||
"vendor/bin/phpmd src text controversial", | ||
"vendor/bin/phpmd src text design", | ||
"vendor/bin/phpmd src text unusedcode" | ||
], | ||
"depends": [ | ||
"composer" | ||
], | ||
"failure": "ignore", | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "phpmd" | ||
}, | ||
{ | ||
"commands": [ | ||
"vendor/bin/phpstan analyse src" | ||
], | ||
"depends": [ | ||
"composer" | ||
], | ||
"failure": "ignore", | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "phpstan" | ||
}, | ||
{ | ||
"commands": [ | ||
"phploc src" | ||
], | ||
"depends": [ | ||
"composer" | ||
], | ||
"failure": "ignore", | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "phploc" | ||
}, | ||
{ | ||
"commands": [ | ||
"phpcpd src" | ||
], | ||
"depends": [ | ||
"composer" | ||
], | ||
"failure": "ignore", | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "phpcpd" | ||
} | ||
], | ||
"volumes": [ | ||
{ | ||
"host": { | ||
"path": "/tmp/composer-cache" | ||
}, | ||
"name": "composer-cache" | ||
} | ||
] | ||
} | ||
kind: pipeline | ||
name: Codequality | ||
steps: | ||
- commands: | ||
- php -v | ||
- composer update | ||
image: joomlaprojects/docker-images:php8.1 | ||
name: composer | ||
volumes: | ||
- name: composer-cache | ||
path: /tmp/composer-cache | ||
- commands: | ||
- vendor/bin/phpcs --standard=ruleset.xml src/ | ||
depends: | ||
- composer | ||
image: joomlaprojects/docker-images:php8.1 | ||
name: phpcs | ||
- commands: | ||
- vendor/bin/phan | ||
depends: | ||
- composer | ||
failure: ignore | ||
image: joomlaprojects/docker-images:php8.1-ast | ||
name: phan | ||
- commands: | ||
- vendor/bin/phpstan analyse src | ||
depends: | ||
- composer | ||
failure: ignore | ||
image: joomlaprojects/docker-images:php8.1 | ||
name: phpstan | ||
- commands: | ||
- phploc src | ||
depends: | ||
- composer | ||
failure: ignore | ||
image: joomlaprojects/docker-images:php8.1 | ||
name: phploc | ||
- commands: | ||
- phpcpd src | ||
depends: | ||
- composer | ||
failure: ignore | ||
image: joomlaprojects/docker-images:php8.1 | ||
name: phpcpd | ||
volumes: | ||
- host: | ||
path: /tmp/composer-cache | ||
name: composer-cache | ||
--- | ||
{ | ||
"kind": "pipeline", | ||
"name": "PHP 8.1 lowest", | ||
"steps": [ | ||
{ | ||
"commands": [ | ||
"php -v", | ||
"composer update --prefer-stable --prefer-lowest" | ||
], | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "composer", | ||
"volumes": [ | ||
{ | ||
"name": "composer-cache", | ||
"path": "/tmp/composer-cache" | ||
} | ||
] | ||
}, | ||
{ | ||
"commands": [ | ||
"vendor/bin/phpunit" | ||
], | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "PHPUnit" | ||
} | ||
], | ||
"volumes": [ | ||
{ | ||
"host": { | ||
"path": "/tmp/composer-cache" | ||
}, | ||
"name": "composer-cache" | ||
} | ||
] | ||
} | ||
kind: pipeline | ||
name: PHP 8.1 lowest | ||
steps: | ||
- commands: | ||
- php -v | ||
- composer update --prefer-stable --prefer-lowest | ||
image: joomlaprojects/docker-images:php8.1 | ||
name: composer | ||
volumes: | ||
- name: composer-cache | ||
path: /tmp/composer-cache | ||
- commands: | ||
- vendor/bin/phpunit | ||
image: joomlaprojects/docker-images:php8.1 | ||
name: PHPUnit | ||
volumes: | ||
- host: | ||
path: /tmp/composer-cache | ||
name: composer-cache | ||
--- | ||
{ | ||
"kind": "pipeline", | ||
"name": "PHP 8.1", | ||
"steps": [ | ||
{ | ||
"commands": [ | ||
"php -v", | ||
"composer update --prefer-stable" | ||
], | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "composer", | ||
"volumes": [ | ||
{ | ||
"name": "composer-cache", | ||
"path": "/tmp/composer-cache" | ||
} | ||
] | ||
}, | ||
{ | ||
"commands": [ | ||
"vendor/bin/phpunit" | ||
], | ||
"image": "joomlaprojects/docker-images:php8.1", | ||
"name": "PHPUnit" | ||
} | ||
], | ||
"volumes": [ | ||
{ | ||
"host": { | ||
"path": "/tmp/composer-cache" | ||
}, | ||
"name": "composer-cache" | ||
} | ||
] | ||
} | ||
kind: pipeline | ||
name: PHP 8.1 | ||
steps: | ||
- commands: | ||
- php -v | ||
- composer update --prefer-stable | ||
image: joomlaprojects/docker-images:php8.1 | ||
name: composer | ||
volumes: | ||
- name: composer-cache | ||
path: /tmp/composer-cache | ||
- commands: | ||
- vendor/bin/phpunit | ||
image: joomlaprojects/docker-images:php8.1 | ||
name: PHPUnit | ||
volumes: | ||
- host: | ||
path: /tmp/composer-cache | ||
name: composer-cache | ||
--- | ||
{ | ||
"kind": "pipeline", | ||
"name": "PHP 8.2", | ||
"steps": [ | ||
{ | ||
"commands": [ | ||
"php -v", | ||
"composer update --prefer-stable --ignore-platform-reqs" | ||
], | ||
"image": "joomlaprojects/docker-images:php8.2", | ||
"name": "composer", | ||
"volumes": [ | ||
{ | ||
"name": "composer-cache", | ||
"path": "/tmp/composer-cache" | ||
} | ||
] | ||
}, | ||
{ | ||
"commands": [ | ||
"vendor/bin/phpunit" | ||
], | ||
"failure": "ignore", | ||
"image": "joomlaprojects/docker-images:php8.2", | ||
"name": "PHPUnit" | ||
} | ||
], | ||
"volumes": [ | ||
{ | ||
"host": { | ||
"path": "/tmp/composer-cache" | ||
}, | ||
"name": "composer-cache" | ||
} | ||
] | ||
} | ||
kind: pipeline | ||
name: PHP 8.2 | ||
steps: | ||
- commands: | ||
- php -v | ||
- composer update --prefer-stable | ||
image: joomlaprojects/docker-images:php8.2 | ||
name: composer | ||
volumes: | ||
- name: composer-cache | ||
path: /tmp/composer-cache | ||
- commands: | ||
- vendor/bin/phpunit | ||
image: joomlaprojects/docker-images:php8.2 | ||
name: PHPUnit | ||
volumes: | ||
- host: | ||
path: /tmp/composer-cache | ||
name: composer-cache | ||
--- | ||
kind: signature | ||
hmac: 7c029e8c326d790ab02f3575e5e7232454ca36a1c8ebbc119d03b32aa6f61630 | ||
hmac: 60184ca6b1700d5de9b9e558725bdf11c72cc94a0de5900657293fe51fee4781 | ||
|
||
... |
Oops, something went wrong.