Skip to content

Commit 3961a6b

Browse files
committed
Run lint in travis
1 parent 78f5d8f commit 3961a6b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@ os:
88

99
before_script: composer install --dev
1010

11-
script: ./vendor/phpunit/phpunit/phpunit --configuration phpunit.xml
11+
jobs:
12+
include:
13+
- stage: lint
14+
script:
15+
- composer lint
16+
- ./vendor/bin/phpstan analyze -c vendor/nunomaduro/larastan/extension.neon -l 4 src/
17+
- stage: test
18+
script: ./vendor/phpunit/phpunit/phpunit --configuration phpunit.xml
19+
20+

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"lint:fix": "./vendor/bin/php-cs-fixer fix --config=.php_cs --using-cache false",
1313
"lint:check": "./vendor/bin/phplint",
14-
"lint": "composer run-script lint:fix && composer run-script lint:check",
14+
"lint": "composer run-script lint && composer run-script lint:check",
1515
"test": "./vendor/bin/phpunit"
1616
},
1717
"require": {

0 commit comments

Comments
 (0)