summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-04-21 12:03:49 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-04-29 15:15:57 +0200
commit7e14e033743ad80562a9d53c1aab21a02e78b665 (patch)
tree8a6fbd72ec0b5db9b49220ea9716fbfa11fc949d /.travis.yml
parent9a98569efea4e02ee2e52b168610da8f7a3e9a0c (diff)
downloadphp-git-7e14e033743ad80562a9d53c1aab21a02e78b665.tar.gz
Reduce test parallelism on ARM64 CI
Let's go from 32 to 16 parallel jobs. We can reduce this further if necessary. Closes GH-5426.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index d12e846f2b..1b3ce4119a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -89,7 +89,9 @@ before_script:
# Run PHPs run-tests.php
script:
- - ./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 opcache.protect_memory=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 -j$(nproc)
+ # ARM64 CI reports nproc=32, which is excessive.
+ - if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
+ - ./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 opcache.protect_memory=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 -j$JOBS
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
after_success: