Permalink
Browse files

travis: finely segmented matrix, added PhpStan

  • Loading branch information...
dg committed Feb 5, 2019
1 parent b2117b4 commit 69136d2e50f02c78fe3571365adab44b4ade6c4f
Showing with 23 additions and 7 deletions.
  1. +23 −7 .travis.yml
@@ -24,26 +24,41 @@ 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
script:
- php temp/code-checker/code-checker --strict-types -i tests/Tracy/fixtures -i examples/assets


- 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 tools --config tests/coding-standard.yml


- name: Code Standard Checker (JS)
install:
# Install new Node.js and Eslint
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm install eslint
script:
- php temp/code-checker/code-checker --strict-types -i tests/Tracy/fixtures -i examples/assets
- php temp/coding-standard/ecs check src tests examples tools --config tests/coding-standard.yml
- ./node_modules/.bin/eslint "src/**/*.js"


- 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:
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
after_script:
@@ -52,6 +67,7 @@ jobs:


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


0 comments on commit 69136d2

Please sign in to comment.