Skip to content

Commit b9b9159

Browse files
committed
travis: finely segmented matrix, added PhpStan
1 parent 8d84421 commit b9b9159

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.travis.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,30 @@ after_failure:
2626

2727
jobs:
2828
include:
29-
- stage: Code Standard Checker
30-
php: 7.1
29+
- name: Nette Code Checker
3130
install:
32-
# Install Nette Code Checker
3331
- travis_retry composer create-project nette/code-checker temp/code-checker ^3.0 --no-progress
34-
# Install Nette Coding Standard
35-
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
3632
script:
3733
- php temp/code-checker/code-checker --strict-types -i "tests/*/fixtures*" -i tests/Runner/find-tests
34+
35+
36+
- name: Nette Coding Standard
37+
install:
38+
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
39+
script:
3840
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.yml
3941

4042

43+
- stage: Static Analysis (informative)
44+
install:
45+
# Install PHPStan
46+
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
47+
- travis_retry composer install --no-progress --prefer-dist
48+
script:
49+
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
50+
51+
4152
- stage: Code Coverage
42-
php: 7.1
4353
script:
4454
- src/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
4555
after_script:
@@ -48,6 +58,7 @@ jobs:
4858

4959

5060
allow_failures:
61+
- stage: Static Analysis (informative)
5162
- stage: Code Coverage
5263

5364

0 commit comments

Comments
 (0)