Skip to content

Commit 107a879

Browse files
committed
Updated Travis config to run phpcs only once. Thanks @jrfnl
1 parent 87cc78d commit 107a879

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ matrix:
3232
env: WP_VERSION=latest WP_MULTISITE=1
3333
- php: 7.3
3434
env: NPM_TESTS=1
35+
env: PHPCS=1
3536
exclude:
3637
- php: 7.3
3738
env: WP_VERSION=4.5
@@ -87,12 +88,12 @@ before_script:
8788
fi
8889
script:
8990
- |
91+
if [[ "$PHPCS" == "1" ]]; then
92+
composer phpcs
93+
fi
94+
9095
if [[ "$NPM_TESTS" == "1" ]]; then
9196
npm test
9297
else
93-
if [[ "$TRAVIS_PHP_VERSION" != "5.2" ]]; then
94-
composer phpcs
95-
fi
96-
9798
phpunit
9899
fi

0 commit comments

Comments
 (0)