mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +00:00
Merge branch 'master' into php5
* master: Run HHVM tests in parallel.
This commit is contained in:
commit
16503848a4
@ -19,6 +19,7 @@ env:
|
|||||||
before_install: true
|
before_install: true
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- sudo apt-get install parallel
|
||||||
- eval `ssh-agent -s`
|
- eval `ssh-agent -s`
|
||||||
- travis/setup-secure-shell.sh
|
- travis/setup-secure-shell.sh
|
||||||
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then travis/install-php-extensions.sh; fi"
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then travis/install-php-extensions.sh; fi"
|
||||||
|
@ -14,15 +14,21 @@ else
|
|||||||
PHPUNIT="$(dirname "$0")/../vendor/bin/phpunit"
|
PHPUNIT="$(dirname "$0")/../vendor/bin/phpunit"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PHPUNIT_EXTRA_ARGS=''
|
PHPUNIT_ARGS='--verbose'
|
||||||
if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.4', '<');"` = "1" ]
|
if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.4', '<');"` = "1" ]
|
||||||
then
|
then
|
||||||
PHPUNIT_EXTRA_ARGS="$PHPUNIT_EXTRA_ARGS -d zend.enable_gc=0"
|
PHPUNIT_ARGS="$PHPUNIT_ARGS -d zend.enable_gc=0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"$PHPUNIT" \
|
if [ "$TRAVIS_PHP_VERSION" = 'hhvm' ]
|
||||||
$PHPUNIT_EXTRA_ARGS \
|
then
|
||||||
--verbose \
|
find tests -type f -name "*Test.php" | \
|
||||||
--coverage-text \
|
parallel --gnu --keep-order \
|
||||||
--coverage-clover code_coverage/clover.xml \
|
"echo '== {} =='; \"$PHPUNIT\" $PHPUNIT_ARGS {};"
|
||||||
--coverage-html code_coverage/
|
else
|
||||||
|
"$PHPUNIT" \
|
||||||
|
$PHPUNIT_ARGS \
|
||||||
|
--coverage-text \
|
||||||
|
--coverage-clover code_coverage/clover.xml \
|
||||||
|
--coverage-html code_coverage/
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user