xref: /PHP-8.1/travis/test.sh (revision e41cbd21)
1#!/bin/bash
2set -ex
3
4# ARM64 CI reports nproc=32, which is excessive.
5if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
6
7export SKIP_SLOW_TESTS=1
8export SKIP_IO_CAPTURE_TESTS=1
9./sapi/cli/php run-tests.php -P \
10    -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 \
11    --set-timeout 120 -j$JOBS \
12    -d extension=`pwd`/modules/zend_test.so \
13    -d zend_extension=`pwd`/modules/opcache.so \
14    -d opcache.enable_cli=1 \
15    -d opcache.protect_memory=1 \
16    "$@"
17