Skip to content

Commit 781e99e

Browse files
committed
travis: finely segmented matrix, added PhpStan
1 parent f44722c commit 781e99e

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

‎.travis.yml‎

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,33 @@ after_failure:
1818

1919
jobs:
2020
include:
21-
- stage: Code Standard Checker
21+
- name: Nette Code Checker
2222
install:
23-
# Install Nette Code Checker
2423
- travis_retry composer create-project nette/code-checker temp/code-checker ^3 --no-progress
25-
# Install Nette Coding Standard
26-
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
24+
script:
25+
- php temp/code-checker/code-checker --strict-types
26+
2727

28+
- name: Nette Coding Standard
29+
install:
30+
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
2831
script:
29-
- php temp/code-checker/code-checker
3032
- php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php71.yml
3133

3234

35+
- stage: Static Analysis (informative)
36+
install:
37+
# Install PHPStan
38+
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
39+
- travis_retry composer install --no-progress --prefer-dist
40+
script:
41+
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
42+
43+
44+
allow_failures:
45+
- stage: Static Analysis (informative)
46+
47+
3348
sudo: false
3449

3550
cache:

0 commit comments

Comments
 (0)