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

Commit f0d9e62

Browse files
committed
Chore: Update travis script to run php-cs-fixer and php-stan scripts
1 parent 6c40590 commit f0d9e62

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor/
22
build/
3+
.idea/

.php_cs.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

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

88
return PhpCsFixer\Config::create()
99
->setUsingCache(false) //Remove for performance improvements

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ dist: trusty
44
php:
55
- "7.1"
66
- "7.2"
7+
- "7.3"
78

89
before_install:
910
- composer self-update
1011
- composer install --dev --no-interaction --prefer-source
1112

12-
script: vendor/bin/phpunit
13+
jobs:
14+
include:
15+
- script: ./vendor/bin/php-cs-fixer fix . --dry-run --stop-on-violation
16+
- script: ./vendor/bin/phpstan analyse ./src --level=max
17+
- script: ./vendor/bin/phpunit

phpunit.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<phpunit colors="true" verbose="true" bootstrap="./tests/Bootstrap.php">
33
<testsuites>
44
<testsuite name="PHPImageOptim Tests">
5-
<directory suffix="Test.php" phpVersion="5.6.0" phpVersionOperator=">=">tests/PHPImageOptim</directory>
5+
<directory suffix="Test.php" phpVersion="7.1.0" phpVersionOperator=">=">tests/PHPImageOptim</directory>
66
</testsuite>
77
</testsuites>
88

0 commit comments

Comments
 (0)