diff --git a/.gitignore b/.gitignore index fd8ceee..56bceb3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ vendor/ build/ +.idea/ \ No newline at end of file diff --git a/.php_cs.dist b/.php_cs.dist index fb24c21..7625566 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -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 diff --git a/.travis.yml b/.travis.yml index f1f5650..dbd507f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml index a2bb7a6..df833ec 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -2,7 +2,7 @@ - tests/PHPImageOptim + tests/PHPImageOptim