2014-09-05 14:35:50 -04:00
|
|
|
language:
|
|
|
|
- c
|
|
|
|
- cpp
|
2013-11-17 23:58:13 -08:00
|
|
|
|
2015-11-30 15:05:25 -08:00
|
|
|
sudo: required
|
2018-08-13 19:27:44 -04:00
|
|
|
dist: xenial
|
2015-11-30 15:05:25 -08:00
|
|
|
|
2018-08-13 19:27:44 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- lcov
|
|
|
|
- valgrind
|
2015-11-30 15:05:25 -08:00
|
|
|
|
|
|
|
env:
|
2018-08-13 19:27:44 -04:00
|
|
|
global:
|
2018-08-13 20:24:05 -04:00
|
|
|
- CXX="g++ -std=c++11"
|
2018-08-13 19:40:30 -04:00
|
|
|
- PROTOBUF_VERSION=3.6.1
|
2018-08-13 19:27:44 -04:00
|
|
|
- PKG_CONFIG_PATH=$HOME/protobuf-$PROTOBUF_VERSION-bin/lib/pkgconfig
|
2013-11-17 23:58:13 -08:00
|
|
|
|
|
|
|
install:
|
2015-11-30 15:05:25 -08:00
|
|
|
- pip install --user cpp-coveralls
|
2016-10-30 10:54:47 +01:00
|
|
|
- wget https://github.com/google/protobuf/archive/v$PROTOBUF_VERSION.tar.gz
|
|
|
|
- tar xf v$PROTOBUF_VERSION.tar.gz
|
|
|
|
- ( cd protobuf-$PROTOBUF_VERSION && ./autogen.sh && ./configure --prefix=$HOME/protobuf-$PROTOBUF_VERSION-bin && make -j2 && make install )
|
2013-11-17 23:58:13 -08:00
|
|
|
|
|
|
|
script:
|
2013-11-18 14:35:52 -05:00
|
|
|
- ./autogen.sh
|
2014-09-05 15:44:47 -04:00
|
|
|
- ./configure && make -j2 distcheck VERBOSE=1 && make clean
|
2018-08-13 19:27:44 -04:00
|
|
|
- ./configure --enable-valgrind-tests CFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined" && make -j2 distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-valgrind-tests CFLAGS=\"-fsanitize=undefined -fno-sanitize-recover=undefined\"" VERBOSE=1 && make clean
|
2014-06-02 18:04:35 -04:00
|
|
|
|
|
|
|
after_success:
|
2018-08-13 19:27:44 -04:00
|
|
|
- cpp-coveralls --build-root . --exclude t/ --exclude /usr/include --exclude protobuf-$PROTOBUF_VERSION --exclude protoc-c
|