protobuf-c/.travis.yml

30 lines
889 B
YAML
Raw Normal View History

language:
- c
- cpp
2013-11-17 23:58:13 -08:00
env:
- PROTOBUF_VERSION=2.5.0
compiler:
- gcc
- clang
2013-11-17 23:58:13 -08:00
before_install:
- sudo apt-get update -qq
2013-11-17 23:58:13 -08:00
install:
- sudo apt-get -q install valgrind lcov
- sudo pip install cpp-coveralls
- wget https://protobuf.googlecode.com/svn/rc/protobuf-$PROTOBUF_VERSION.tar.gz
- tar xf protobuf-$PROTOBUF_VERSION.tar.gz
- ( cd protobuf-$PROTOBUF_VERSION && ./configure && make -j2 && sudo make install )
2013-11-17 23:58:13 -08:00
script:
- ./autogen.sh
- ./configure && make distcheck VERBOSE=1 && make clean
- ./configure --enable-valgrind-tests && make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-valgrind-tests" VERBOSE=1 && make clean
- 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