mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/symfony.com/cs/package.yml
This commit is contained in:
parent
121c560474
commit
835d684221
1 changed files with 29 additions and 0 deletions
29
projects/symfony.com/cs/package.yml
Normal file
29
projects/symfony.com/cs/package.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
distributable: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/{{version.tag}}/php-cs-fixer.phar
|
||||
|
||||
versions:
|
||||
github: PHP-CS-Fixer/PHP-CS-Fixer
|
||||
|
||||
warnings:
|
||||
- vendored
|
||||
|
||||
dependencies:
|
||||
php.net: '>=7.4'
|
||||
|
||||
build:
|
||||
- install -D symfony.com∕cs-{{version}}.phar {{prefix}}/libexec/lib/php-cs-fixer.phar
|
||||
- run: |
|
||||
cat > php-cs-fixer <<EOF
|
||||
#!/bin/sh
|
||||
exec php \$(dirname \$0)/../libexec/lib/php-cs-fixer.phar "\$@"
|
||||
EOF
|
||||
chmod +x php-cs-fixer
|
||||
working-directory: ${{prefix}}/bin
|
||||
|
||||
provides:
|
||||
- bin/php-cs-fixer
|
||||
|
||||
test:
|
||||
- php-cs-fixer --version | grep {{version}}
|
||||
- echo "<?php \$this->foo( 'Hello World!' );" > test.php
|
||||
- php-cs-fixer fix test.php
|
||||
- cat test.php | grep "\$this->foo('Hello World!');"
|
Loading…
Reference in a new issue