diff --git a/.travis.yml b/.travis.yml index 9a402e4a..8d29d37a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ php: - 5.5.9 - 5.5 - 5.6 + - 7.0 - hhvm env: @@ -21,7 +22,7 @@ install: - sudo apt-get install parallel - eval `ssh-agent -s` - 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 script: @@ -30,3 +31,8 @@ script: after_success: - sh -c "if $TRAVIS_SECURE_ENV_VARS; then travis/upload-code-coverage-html.sh; fi" + +matrix: + allow_failures: + - php: 7.0 + fast_finish: true diff --git a/travis/run-phpunit.sh b/travis/run-phpunit.sh index 600a1d94..5ee69d66 100755 --- a/travis/run-phpunit.sh +++ b/travis/run-phpunit.sh @@ -20,7 +20,7 @@ then PHPUNIT_ARGS="$PHPUNIT_ARGS -d zend.enable_gc=0" fi -if [ "$TRAVIS_PHP_VERSION" = 'hhvm' ] +if [ "$TRAVIS_PHP_VERSION" = 'hhvm' -o "$TRAVIS_PHP_VERSION" = '7.0' ] then find tests -type f -name "*Test.php" | \ parallel --gnu --keep-order \