@@ -20,31 +20,47 @@ after_failure:
2020
2121jobs :
2222 include :
23- - env : title=" Lowest Dependencies"
23+ - name : Lowest Dependencies
2424 install :
2525 - travis_retry composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
2626
2727
28- - stage : Code Standard Checker
29- php : 7.1
28+ - name : Nette Code Checker
3029 install :
31- # Install Nette Code Checker
3230 - travis_retry composer create-project nette/code-checker temp/code-checker ^3 --no-progress
33- # Install Nette Coding Standard
31+ script :
32+ - php temp/code-checker/code-checker --strict-types
33+
34+
35+ - name : Nette Coding Standard
36+ install :
3437 - travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
38+ script :
39+ - php temp/coding-standard/ecs check src tests examples --config temp/coding-standard/coding-standard-php71.yml
40+
41+
42+ - name : JS test + Code Standard Checker
43+ install :
3544 # Install new Node.js
3645 - . $HOME/.nvm/nvm.sh
3746 - nvm install stable
3847 - nvm use stable
3948 # Install Grunt and Eslint
4049 - npm install -g grunt-cli; cd tests/netteForms; npm install; cd ../..
4150 script :
42- - php temp/code-checker/code-checker --strict-types
43- - php temp/coding-standard/ecs check src tests examples --config temp/coding-standard/coding-standard-php71.yml
4451 - grunt --gruntfile=tests/netteForms/Gruntfile.js test
4552 - tests/netteForms/node_modules/.bin/eslint src/assets/netteForms.js --config tests/.eslintrc.js
4653
4754
55+ - stage : Static Analysis (informative)
56+ install :
57+ # Install PHPStan
58+ - travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
59+ - travis_retry composer install --no-progress --prefer-dist
60+ script :
61+ - php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
62+
63+
4864 - stage : Code Coverage
4965 script :
5066 - vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
5470
5571
5672 allow_failures :
73+ - stage : Static Analysis (informative)
5774 - stage : Code Coverage
5875
5976
0 commit comments