Skip to content

Commit fe33bf9

Browse files
committed
CI runner fixes
1 parent 2eb3d8d commit fe33bf9

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

‎ci/test_inner.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ php --ini
99
#cp ci/run-tests-parallel.php run-tests.php
1010
#REPORT_EXIT_STATUS=1 make test TESTS="-j$(nproc) -P -q --show-diff"
1111
REPORT_EXIT_STATUS=1 make test TESTS="-P -q --show-diff"
12-
echo "Test that package.xml is valid"
13-
pecl package
12+
13+
if [[ -x "$(command -v pecl)" ]]; then
14+
echo "Test that package.xml is valid"
15+
pecl package
16+
fi

‎ci/test_inner_valgrind.sh‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ php --version
88
php --ini
99
#cp ci/run-tests-parallel.php run-tests.php
1010
#REPORT_EXIT_STATUS=1 make test TESTS="-j$(nproc) -P -q --show-diff -m --show-mem"
11-
REPORT_EXIT_STATUS=1 make test TESTS="-P -q --show-diff -m --show-mem"
12-
echo "Test that package.xml is valid"
13-
pecl package
11+
case "$PHP_VERSION" in
12+
7.0.*|7.1.*|7.2.*|7.3.*)
13+
TEST_ARGS_SHOW_MEM=""
14+
;;
15+
*)
16+
TEST_ARGS_SHOW_MEM=" --show-mem "
17+
;;
18+
esac
19+
REPORT_EXIT_STATUS=1 make test TESTS="-P -q --show-diff -m $TEST_ARGS_SHOW_MEM"

0 commit comments

Comments
 (0)