From deba373fdda903f47c93426184fb094d98d9489e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Dob=C3=B3?= Date: Thu, 2 Aug 2018 11:14:20 +0200 Subject: [PATCH] Possible fix for HHVM safe_mode/open_basedir error --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 92aa5e7..7109095 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,8 @@ install: before_script: - if [[ "$TYPE" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS spot_test;" -uroot; fi - if [[ "$TYPE" == "pgsql" ]]; then psql -c 'create database spot_test;' -U postgres; fi - + - if [[ "$TYPE" == "sqlite" && "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then echo 'open_basedir = none' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi + # omitting "script:" will default to phpunit # use the $TYPE env variable to determine the phpunit.xml to use script: vendor/bin/phpunit --configuration phpunit_$TYPE.xml --coverage-text