Permalink
Browse files

travis: finely segmented matrix, added PhpStan

  • Loading branch information...
dg committed Feb 5, 2019
1 parent fa2723a commit bae2ec599fbcdd6612b93a9640de8a877ed5196f
Showing with 24 additions and 7 deletions.
  1. +24 −7 .travis.yml
@@ -20,31 +20,47 @@ after_failure:

jobs:
include:
- env: title="Lowest Dependencies"
- name: Lowest Dependencies
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
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 temp/coding-standard/coding-standard-php71.yml


- name: JS test + Code Standard Checker
install:
# Install new Node.js
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
# Install Grunt and Eslint
- npm install -g grunt-cli; cd tests/netteForms; npm install; cd ../..
script:
- php temp/code-checker/code-checker --strict-types
- php temp/coding-standard/ecs check src tests examples --config temp/coding-standard/coding-standard-php71.yml
- grunt --gruntfile=tests/netteForms/Gruntfile.js test
- tests/netteForms/node_modules/.bin/eslint src/assets/netteForms.js --config tests/.eslintrc.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
script:
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
@@ -54,6 +70,7 @@ jobs:


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


0 comments on commit bae2ec5

Please sign in to comment.