Skip to content

Commit 745fee2

Browse files
committed
run phpstan on travis-ci
1 parent d97fe4e commit 745fee2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ sudo: false
55
php:
66
- 5.6
77
- 7.0
8-
- 7.1
8+
9+
matrix:
10+
include:
11+
- php: 7.1
12+
env: STATIC_ANALYSIS=yes
913

1014
before_script:
1115
- travis_retry composer self-update
1216
- travis_retry composer install --no-interaction --prefer-source
17+
- if [ "$STATIC_ANALYSIS" != "" ]; then curl -L https://github.com/phpstan/phpstan/releases/download/0.8/phpstan.phar -o phpstan.phar; fi;
1318

1419
script:
1520
- vendor/bin/phpunit --verbose --coverage-text
21+
- if [ "$STATIC_ANALYSIS" != "" ]; then php phpstan.phar analyse --level=4 lib; fi;

0 commit comments

Comments
 (0)