diff --git a/.travis.yml b/.travis.yml index 0518dca8..caeb4142 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,18 +26,29 @@ 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 --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 examples --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 script: - vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src @@ -47,7 +58,7 @@ jobs: allow_failures: - - php: 7.2 + - stage: Static Analysis (informative) - stage: Code Coverage