1
0
mirror of https://github.com/mrclay/minify.git synced 2025-07-31 19:30:29 +02:00

Run php-cs-fixer in Travis CI

This commit is contained in:
Elan Ruusamäe
2019-12-10 08:59:07 +02:00
committed by Elan Ruusamäe
parent b632b916a7
commit 9b492d3c6a

View File

@@ -18,6 +18,10 @@ jobs:
- php: "7.2" - php: "7.2"
- php: "7.3" - php: "7.3"
- php: "7.4snapshot" - php: "7.4snapshot"
- name: "Php CS Fixer"
php: "7.3"
env:
- PHP_CS_FIXER=1
env: env:
- CLOSURE_VERSION: 20161024 - CLOSURE_VERSION: 20161024
@@ -37,7 +41,14 @@ before_script:
- tests/dl-closure.sh - tests/dl-closure.sh
script: script:
- PATH=vendor/bin:$PATH
- composer validate - composer validate
- |
if [ "$PHP_CS_FIXER" ]; then
composer config --unset platform.php
composer require --dev friendsofphp/php-cs-fixer:2.16
php-cs-fixer fix --verbose --diff --dry-run --ansi
fi
- vendor/bin/phpunit --verbose - vendor/bin/phpunit --verbose
# vim:ts=2:sw=2:et # vim:ts=2:sw=2:et