Skip to content

Commit 7956064

Browse files
committed
Patched libtoolto not remove gcno [skip appveyor]
For more see: https://stackoverflow.com/q/49476206
1 parent 8e97f1e commit 7956064

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ cache:
4545
before_install:
4646
- phpenv config-rm xdebug.ini || true
4747
- ulimit -c unlimited -S || true
48-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then export COVERAGE="OFF"; fi
4948

5049
install:
5150
- .ci/install-re2c.sh
@@ -70,6 +69,8 @@ before_script:
7069

7170
script:
7271
- .ci/run-tests.sh
72+
# To make sure we're able to parse/send coverage report
73+
- find . -type f \( -name '*.gcno' -o -name '*.gcda' \) -print
7374

7475
after_failure:
7576
- .ci/after-failure.sh

parser.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ $(srcdir)/parser/parser.c: $(srcdir)/parser/zephir.c $(srcdir)/parser/base.c
4848
echo "#line 1 \"$(top_srcdir)/parser/base.c\"" >> $@
4949
cat $(top_srcdir)/parser/base.c >> $@
5050

51-
$(srcdir)/parser/zephir.c: $(srcdir)/parser/zephir.lemon $(srcdir)/parser/lemon
51+
$(srcdir)/parser/zephir.c: $(srcdir)/parser/zephir.lemon $(srcdir)/parser/lemon patch-libtool
5252
$(top_srcdir)/parser/lemon $<
5353

54+
# For more see: https://stackoverflow.com/q/49476206
55+
.PHONY: patch-libtool
56+
patch-libtool: libtool
57+
$(AWK) '/case \$$p in/{print;print "\t *.gcno)\n\t ;;";next}1' $^ > $^.tmp && mv $^.tmp $^

0 commit comments

Comments
 (0)