Skip to content

Commit 87efcf8

Browse files
committed
updated travis for phpunit
1 parent aeeed2d commit 87efcf8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ install:
2525
- phpenv rehash
2626
before_script:
2727
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
28+
- export PATH="$HOME/.composer/vendor/bin:$PATH"
29+
- |
30+
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
31+
composer global require "phpunit/phpunit=5.7.*"
32+
else
33+
composer global require "phpunit/phpunit=4.8.*"
34+
fi
2835
- phpenv rehash
2936
script:
3037
grunt travis

0 commit comments

Comments
 (0)