mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 15:20:58 +00:00
Add PHP7 to Travis CI.
This commit is contained in:
parent
179be1e518
commit
2813e2cd3b
@ -8,6 +8,7 @@ php:
|
|||||||
- 5.4
|
- 5.4
|
||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
|
- 7.0
|
||||||
- hhvm
|
- hhvm
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -22,7 +23,7 @@ install:
|
|||||||
- sudo apt-get install parallel
|
- 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' -a '$TRAVIS_PHP_VERSION' != '7.0' ]; then travis/install-php-extensions.sh; fi"
|
||||||
- travis/setup-composer.sh
|
- travis/setup-composer.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
@ -31,3 +32,8 @@ script:
|
|||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then travis/upload-code-coverage-html.sh; fi"
|
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then travis/upload-code-coverage-html.sh; fi"
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- php: 7.0
|
||||||
|
fast_finish: true
|
||||||
|
@ -20,7 +20,7 @@ then
|
|||||||
PHPUNIT_ARGS="$PHPUNIT_ARGS -d zend.enable_gc=0"
|
PHPUNIT_ARGS="$PHPUNIT_ARGS -d zend.enable_gc=0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$TRAVIS_PHP_VERSION" = 'hhvm' ]
|
if [ "$TRAVIS_PHP_VERSION" = 'hhvm' -o "$TRAVIS_PHP_VERSION" = '7.0' ]
|
||||||
then
|
then
|
||||||
find tests -type f -name "*Test.php" | \
|
find tests -type f -name "*Test.php" | \
|
||||||
parallel --gnu --keep-order \
|
parallel --gnu --keep-order \
|
||||||
|
Loading…
Reference in New Issue
Block a user