Skip to content

Commit fe72ef7

Browse files
committed
Add codecov to .travis.yml
1 parent 85668ac commit fe72ef7

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
@@ -12,11 +12,14 @@ notifications:
1212
irc: false
1313

1414
env:
15-
- REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_ARGS='--show-diff' CFLAGS="-Wall"
15+
- 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"
1616

1717
#Compile
1818
before_script:
1919
- ./travis/compile.sh
2020

2121
# Run PHPs run-tests.php
22-
script: make test
22+
script:
23+
- make test
24+
- gcov --object-directory .libs *.c
25+
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)