summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-04-18 12:24:34 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-04-18 12:57:54 +0200
commitb2f49c69b146603d6c34fb5ca67ebadd745ec623 (patch)
tree49fa8c01aebffa7d2e2a4be3a73b902420b6ed4b
parente9aa0337abf06546f5e4dcbdd061175f17bc9ffe (diff)
downloadphp-git-b2f49c69b146603d6c34fb5ca67ebadd745ec623.tar.gz
Add a dl() test to Travis
Compile the zend_test extension as shared and try loading it with dl() to test for obvious issues. Doing this as a standalone call because this is very specific to the CI setup.
-rw-r--r--.travis.yml3
-rwxr-xr-xtravis/compile.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index f7fddf68b3..363d38a0bf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -67,7 +67,8 @@ before_script:
# Run PHPs run-tests.php
script:
- - ./sapi/cli/php run-tests.php -p `pwd`/sapi/cli/php $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 --set-timeout 120
+ - ./sapi/cli/php run-tests.php -P -d extension=`pwd`/modules/zend_test.so $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 --set-timeout 120
+ - sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
after_success:
- ccache --show-stats
diff --git a/travis/compile.sh b/travis/compile.sh
index 0017026c1b..03d8ac6c1e 100755
--- a/travis/compile.sh
+++ b/travis/compile.sh
@@ -76,7 +76,7 @@ $TS \
--with-xpm-dir=/usr \
--with-kerberos \
--enable-sysvmsg \
---enable-zend-test \
+--enable-zend-test=shared \
> "$CONFIG_LOG_FILE"
make "-j${MAKE_JOBS}" $MAKE_QUIET > "$MAKE_LOG_FILE"