Skip to content

Commit 40533d1

Browse files
committed
Cleaned up travis config [skip appveyor]
1 parent 9c8c51c commit 40533d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@ before_script:
6262
- |
6363
if [ "$(php-config --vernum)" -ge "70300" ]; then
6464
echo "Patching PHP tests ruunner"
65-
# TODO: Add to makefile
66-
sed -e "s|'\(valgrind -q --tool=memcheck --trace-children=yes\)'|'\1 --suppressions=./tests/php-7.3.supp'|" \
67-
run-tests.php > tmp.php && mv tmp.php run-tests.php
65+
66+
# TODO: Move to makefile
67+
search_str="valgrind -q --tool=memcheck --trace-children=yes"
68+
add_str="--suppressions=./tests/php-7.3.supp"
69+
sed -e "s|'\($search_str\)'|'\1 $add_str'|" run-tests.php > tmp.php
70+
mv tmp.php run-tests.php
6871
fi
6972
7073
script:

0 commit comments

Comments
 (0)