Permalink
Browse files

travis: finely segmented matrix, added PhpStan

  • Loading branch information...
dg committed Feb 5, 2019
1 parent 8d84421 commit b9b9159dfce7c7ef1a9ef85a719e5b6521489d8e
Showing with 17 additions and 6 deletions.
  1. +17 βˆ’6 .travis.yml
@@ -26,20 +26,30 @@ after_failure:

jobs:
include:
- stage: Code Standard Checker
php: 7.1
- name: Nette Code Checker
install:
# Install Nette Code Checker
- travis_retry composer create-project nette/code-checker temp/code-checker ^3.0 --no-progress
# Install Nette Coding Standard
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
script:
- php temp/code-checker/code-checker --strict-types -i "tests/*/fixtures*" -i tests/Runner/find-tests


- name: Nette Coding Standard
install:
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
script:
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.yml


- stage: Static Analysis (informative)
install:
# Install PHPStan
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
- travis_retry composer install --no-progress --prefer-dist
script:
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src


- stage: Code Coverage
php: 7.1
script:
- src/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
after_script:
@@ -48,6 +58,7 @@ jobs:


allow_failures:
- stage: Static Analysis (informative)
- stage: Code Coverage


2 comments on commit b9b9159

@milo

This comment has been minimized.

Copy link
Member

milo replied Feb 6, 2019

πŸ‘

@dg

This comment has been minimized.

Copy link
Member Author

dg replied Feb 6, 2019

The reason for this modificatin is that I finally figure out (after five years and a lot of travis.yml iterations) how Travis matrix actually works :-)

Please sign in to comment.