Skip to content

Commit b623b2d

Browse files
committed
travis: allows failures in Static Analysis
1 parent f5427a1 commit b623b2d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,20 @@ jobs:
2626
- travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-progress
2727
# Install Nette Coding Standard
2828
- travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress
29+
30+
script:
31+
- php temp/code-checker/src/code-checker.php --short-arrays --strict-types -i tests/Utils/fixtures.reflection
32+
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.neon
33+
34+
35+
- stage: Static Analysis
36+
php: 7.1
37+
install:
2938
# Install PHPStan
3039
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
3140
- travis_retry composer install --no-progress --prefer-dist
3241

3342
script:
34-
- php temp/code-checker/src/code-checker.php --short-arrays --strict-types -i tests/Utils/fixtures.reflection
35-
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.neon
3643
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 7 --configuration tests/phpstan.neon src
3744

3845

@@ -45,6 +52,7 @@ jobs:
4552

4653

4754
allow_failures:
55+
- stage: Static Analysis
4856
- stage: Code Coverage
4957

5058

0 commit comments

Comments
 (0)