Skip to content
This repository was archived by the owner on Jan 10, 2022. It is now read-only.

Commit bc49cd4

Browse files
committed
Fix static analysis on Travis.
1 parent a714132 commit bc49cd4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ install:
7474
- composer self-update
7575
# Install Composer packages.
7676
- composer install
77+
# PHPStan
78+
- if [ "$PHPSTAN" == "1" ]; then composer bin phpstan install; fi
79+
# Psalm
80+
- if [ "$PSALM" == "1" ]; then composer bin psalm install; fi
7781
# Test on specific WordPress version.
7882
- composer require --dev --update-with-dependencies roots/wordpress:${WP_VERSION} wp-phpunit/wp-phpunit:${WP_VERSION}
7983
# List available packages.
@@ -89,9 +93,9 @@ script:
8993
# PHP Mess Detector
9094
- if [ "$PHPMD" == "1" ]; then composer run-script phpmd; fi
9195
# PHPStan
92-
- if [ "$PHPSTAN" == "1" ]; then phpstan analyze; fi
96+
- if [ "$PHPSTAN" == "1" ]; then composer run-script phpstan; fi
9397
# Psalm
94-
- if [ "$PSALM" == "1" ]; then psalm; fi
98+
- if [ "$PSALM" == "1" ]; then composer run-script psalm; fi
9599

96100
after_success:
97101
- if [ "$COVERAGE" == "1" ]; then composer run-script coveralls; fi

0 commit comments

Comments
 (0)