Completely remove HHVM for testing

> Fatal error: Uncaught Error: & is not allowed in write context in phar://phpunit-5.6.8.phar/php-file-iterator/Iterator.php:60

> Fatal error: Uncaught Error: array_creation_expression is not allowed in write context in phar://phpunit-7.5.4.phar/phpunit/Framework/Constraint/JsonMatches.php:54

https://github.com/facebook/hhvm/issues/8387
This commit is contained in:
Phy 2019-02-14 21:35:08 -05:00
parent 6de1ce5e78
commit 4dd296f9b4
1 changed files with 3 additions and 25 deletions

View File

@ -12,27 +12,8 @@ env:
- DISABLE_FUNCTIONS="gzopen"
matrix:
fast_finish: true
include:
- php: hhvm
sudo: true
dist: trusty
group: edge # until the next update
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
services:
- mysql
- postgresql
env: DISABLE_FUNCTIONS=
allow_failures:
- php: "hhvm"
- php: "nightly"
exclude:
- php: "hhvm"
env: DISABLE_FUNCTIONS="gzopen"
notifications:
irc:
channels:
@ -40,15 +21,12 @@ notifications:
on_success: change
on_failure: change
install:
- if [[ $TRAVIS_PHP_VERSION = hhv* ]]; then wget -O ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-5.6.phar; fi
- if [[ $TRAVIS_PHP_VERSION = hhv* ]]; then chmod 755 ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit; fi
- if [[ $TRAVIS_PHP_VERSION > '7.1' && $TRAVIS_PHP_VERSION != hhv* ]]; then wget -O ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-7.phar; fi
- if [[ $TRAVIS_PHP_VERSION > '7.1' && $TRAVIS_PHP_VERSION != hhv* ]]; then chmod 755 ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit; fi
- if [[ $TRAVIS_PHP_VERSION > '7.1' ]]; then wget -O ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-7.phar; fi
- if [[ $TRAVIS_PHP_VERSION > '7.1' ]]; then chmod 755 ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit; fi
# Force PHPUnit 7 #2693; nightly will match $TRAVIS_PHP_VERSION > '7.1' rule
before_script:
# Disable the HHVM JIT for faster Unit Testing
- if [[ $TRAVIS_PHP_VERSION = hhv* ]]; then echo 'hhvm.jit = 0' >> /etc/hhvm/php.ini; fi
- if [[ $TRAVIS_PHP_VERSION != hhv* ]]; then test -z "$DISABLE_FUNCTIONS" || echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- test -z "$DISABLE_FUNCTIONS" || echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- cp _test/mysql.conf.php.dist _test/mysql.conf.php
- cp _test/pgsql.conf.php.dist _test/pgsql.conf.php
- phpunit --version