Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
travis: finely segmented matrix, added PhpStan
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 6, 2019
1 parent 290db35 commit 6d0965a
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,38 @@ install:
- travis_retry composer install --no-progress --prefer-dist

script:
- vendor/bin/tester tests -s -p php
- vendor/bin/tester tests -s

after_failure:
# Print *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done

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/code-checker/code-checker
- 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.1
script:
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
after_script:
Expand All @@ -43,6 +52,7 @@ jobs:


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


Expand Down

0 comments on commit 6d0965a

Please sign in to comment.