]> granicus.if.org Git - php/commitdiff
Travis: Use opcache in release build
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 3 Jun 2017 10:37:47 +0000 (12:37 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 3 Jun 2017 10:37:47 +0000 (12:37 +0200)
Our debug builds on Travis are often timing out recently. Opcache
causes quite a large performance hit on test run times, so move it
over to the release build, where it should have less impact.

.travis.yml

index 527ae8db3257650cb78732de57a76e58ff74d0b8..7024013fa3f0f90a393065111d22e79988366e20 100644 (file)
@@ -57,4 +57,4 @@ before_script:
 
 # Run PHPs run-tests.php 
 script:
-    - ./sapi/cli/php run-tests.php -p `pwd`/sapi/cli/php $(if [ $ENABLE_DEBUG == 1 ]; 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 --set-timeout 120
+    - ./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 --set-timeout 120