Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Chore: Update travis script to run php-cs-fixer and php-stan scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bensquire committed May 5, 2019
1 parent 6c40590 commit f0d9e62
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor/
build/
.idea/
2 changes: 1 addition & 1 deletion .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in([__DIR__ . '/src']);
->in([__DIR__ . '/src', __DIR__ . '/tests']);

return PhpCsFixer\Config::create()
->setUsingCache(false) //Remove for performance improvements
Expand Down
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ dist: trusty
php:
- "7.1"
- "7.2"
- "7.3"

before_install:
- composer self-update
- composer install --dev --no-interaction --prefer-source

script: vendor/bin/phpunit
jobs:
include:
- script: ./vendor/bin/php-cs-fixer fix . --dry-run --stop-on-violation
- script: ./vendor/bin/phpstan analyse ./src --level=max
- script: ./vendor/bin/phpunit
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<phpunit colors="true" verbose="true" bootstrap="./tests/Bootstrap.php">
<testsuites>
<testsuite name="PHPImageOptim Tests">
<directory suffix="Test.php" phpVersion="5.6.0" phpVersionOperator=">=">tests/PHPImageOptim</directory>
<directory suffix="Test.php" phpVersion="7.1.0" phpVersionOperator=">=">tests/PHPImageOptim</directory>
</testsuite>
</testsuites>

Expand Down

0 comments on commit f0d9e62

Please sign in to comment.