2022-07-19 14:00:09 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
2023-11-10 16:54:07 +01:00
|
|
|
load: [docker, composer]
|
2022-07-19 14:00:09 +02:00
|
|
|
steps:
|
|
|
|
- name: install
|
|
|
|
image: composer
|
|
|
|
commands:
|
2023-11-10 16:04:24 +01:00
|
|
|
- composer install --no-interaction --prefer-dist --optimize-autoloader --no-suggest
|
2022-07-19 15:39:38 +02:00
|
|
|
- name: cleanup
|
|
|
|
image: php:8.1
|
|
|
|
commands:
|
|
|
|
- apt-get update && apt-get install -y git zip
|
|
|
|
- curl -L https://phar.phpunit.de/phpunit.phar -o /usr/local/bin/phpunit
|
|
|
|
- curl -L https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -o /usr/local/bin/phpcs
|
|
|
|
- curl -L https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar -o /usr/local/bin/phpcbf
|
|
|
|
- chmod +x /usr/local/bin/phpunit
|
|
|
|
- chmod +x /usr/local/bin/phpcs
|
|
|
|
- chmod +x /usr/local/bin/phpcbf
|
|
|
|
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
2023-11-10 16:54:07 +01:00
|
|
|
|
|
|
|
- phpcbf -w ./src/
|
|
|
|
|
2022-07-19 14:00:09 +02:00
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: php:8.1
|
|
|
|
commands:
|
2023-11-10 16:04:24 +01:00
|
|
|
- vendor/bin/phpunit
|