Permalink
Browse files

travis: finely segmented matrix, added PhpStan

  • Loading branch information...
dg committed Feb 5, 2019
1 parent dce534b commit 4c4738cb817e7b5dbd32b805a3df792698b8e8ec
Showing with 19 additions and 7 deletions.
  1. +19 −7 .travis.yml
@@ -24,24 +24,35 @@ after_failure:

jobs:
include:
- env: title="Lowest Dependencies" PHP_BIN=php-cgi
- name: Lowest Dependencies
env: PHP_BIN=php-cgi
install:
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable


- 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 --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


- 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 temp/coding-standard/coding-standard-php71.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.2
script:
@@ -52,6 +63,7 @@ jobs:


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


0 comments on commit 4c4738c

Please sign in to comment.