Skip to content

Commit b01527a

Browse files
committed
Add codecov to .travis.yml
1 parent cd92f72 commit b01527a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ notifications:
88
irc: false
99

1010
env:
11-
- REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_ARGS='--show-diff' CFLAGS="-Wall"
11+
- REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_ARGS='--show-diff' LDFLAGS="-lgcov" CFLAGS="-Wall -coverage -O0" EXTRA_LDFLAGS="-precious-files-regex .libs/msgpack.gcno"
1212

1313
#Compile
1414
before_script:
1515
- ./travis/compile.sh
1616

1717
# Run PHPs run-tests.php
18-
script: make test
18+
script:
19+
- make test
20+
- gcov --object-directory .libs *.c
21+
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)