mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 22:01:02 +08:00
.travis.yml: enable code coverage checks and upload data to coveralls.io
This commit is contained in:
parent
e72e7e7e81
commit
54881f489b
11
.travis.yml
11
.travis.yml
@ -9,11 +9,14 @@ before_install:
|
|||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get -q install protobuf-compiler libprotobuf-dev libprotoc-dev
|
- sudo apt-get -q install protobuf-compiler libprotobuf-dev libprotoc-dev valgrind lcov
|
||||||
valgrind
|
- sudo pip install cpp-coveralls
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./autogen.sh
|
- ./autogen.sh
|
||||||
- ./configure && make distcheck VERBOSE=1 && make clean
|
- ./configure && make distcheck VERBOSE=1 && make clean
|
||||||
- ./configure --enable-valgrind-tests && make distcheck
|
- ./configure --enable-valgrind-tests && make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-valgrind-tests" VERBOSE=1 && make clean
|
||||||
DISTCHECK_CONFIGURE_FLAGS="--enable-valgrind-tests" VERBOSE=1
|
- if [ "$CC" = "gcc" ]; then ./configure --enable-code-coverage && make && make check; fi
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- if [ "$CC" = "gcc" ]; then cpp-coveralls --build-root . --exclude t/ --exclude /usr/include; fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user