1
0
mirror of https://github.com/mrclay/minify.git synced 2025-09-08 05:00:46 +02:00

2 Commits

Author SHA1 Message Date
Elan Ruusamäe
9b492d3c6a Run php-cs-fixer in Travis CI 2019-12-11 16:52:11 +02:00
Elan Ruusamäe
b632b916a7 php-cs-fixer: restore using cache 2019-12-11 16:52:11 +02:00
2 changed files with 15 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules(
[
@@ -235,4 +235,6 @@ return PhpCsFixer\Config::create()
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
);
);
// vim:ft=php

View File

@@ -18,6 +18,10 @@ jobs:
- php: "7.2"
- php: "7.3"
- php: "7.4snapshot"
- name: "Php CS Fixer"
php: "7.3"
env:
- PHP_CS_FIXER=1
env:
- CLOSURE_VERSION: 20161024
@@ -37,7 +41,14 @@ before_script:
- tests/dl-closure.sh
script:
- PATH=vendor/bin:$PATH
- 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
# vim:ts=2:sw=2:et