]> granicus.if.org Git - php/commitdiff
Add a dl() test to Travis
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 18 Apr 2019 10:24:34 +0000 (12:24 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 18 Apr 2019 10:57:54 +0000 (12:57 +0200)
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.

.travis.yml
travis/compile.sh

index f7fddf68b3afad8c130c8f0fcdbd9dd839933bae..363d38a0bf629a3aa7226a88055c6792be075da9 100644 (file)
@@ -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
index 0017026c1b81f3731a78983018bd412e3cd94578..03d8ac6c1eb3357c707b66632e92c9eda89c37a7 100755 (executable)
@@ -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"