-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also add Travis, and some small changes.
- Loading branch information
Showing
5 changed files
with
67 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
.idea/ | ||
.php_cs.cache | ||
|
||
# Libraries should ignore the lock file | ||
composer.lock | ||
|
||
vendor/ |
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,14 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Mollie\PhpCodingStandards\PhpCsFixer\Rules; | ||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
$finder = Finder::create() | ||
->name('.php_cs.dist') // Fix this file as well | ||
->name('.php_cs.dist') // Fix this file as well | ||
->in(__DIR__); | ||
|
||
$overrides = [ | ||
'declare_strict_types' => true, | ||
]; | ||
|
||
return Config::create() | ||
->setFinder($finder) | ||
->setRiskyAllowed(true) | ||
->setRules(Rules::getForPhp71()); | ||
->setRules(Rules::getForPhp71($overrides)); |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
language: php | ||
|
||
dist: xenial | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- php: 7.4snapshot | ||
- php: nightly | ||
include: | ||
- php: 7.1 | ||
- php: 7.2 | ||
- php: 7.3 | ||
- php: 7.4snapshot | ||
- php: nightly | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- "$HOME/.composer/cache" | ||
|
||
env: | ||
- COMPOSER_NO_INTERACTION=1 | ||
|
||
install: | ||
- travis_retry composer install --no-suggest | ||
|
||
script: | ||
- composer validate --strict | ||
- find src -name *.php | xargs -n 1 php -l | ||
- vendor/bin/php-cs-fixer fix -v --dry-run |
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