2014-09-05 14:35:50 -04:00
language :
- c
- cpp
2013-11-17 23:58:13 -08:00
2020-07-22 16:03:47 +10:00
arch :
- amd64
- arm64
- ppc64le
- s390x
2020-07-22 16:48:28 +10:00
dist : bionic
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 :
2019-04-10 20:28:52 -04:00
- PROTOBUF_VERSION=3.7.1
2018-08-13 19:27:44 -04:00
- PKG_CONFIG_PATH=$HOME/protobuf-$PROTOBUF_VERSION-bin/lib/pkgconfig
2020-05-08 18:55:03 -07:00
- CMAKE_PREFIX_PATH=$HOME/protobuf-$PROTOBUF_VERSION-bin
2013-11-17 23:58:13 -08:00
install :
2015-11-30 15:05:25 -08:00
- pip install --user cpp-coveralls
2019-04-10 20:28:52 -04:00
- wget https://github.com/protocolbuffers/protobuf/archive/v$PROTOBUF_VERSION.tar.gz
2016-10-30 10:54:47 +01:00
- 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
2019-05-20 10:12:29 -07:00
- ./configure --enable-code-coverage && make -j2 && make check
2020-05-08 18:55:03 -07:00
- ( mkdir build-cmake/bin && cd build-cmake/bin && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=protobuf-c-bin ../ && make -j2 && make test && make install)
2014-06-02 18:04:35 -04:00
after_success :
2020-07-22 16:03:47 +10:00
- if [ $(uname -m) = "x86_64" ]; then
cpp-coveralls --build-root . --exclude t/ --exclude /usr/include --exclude protobuf-$PROTOBUF_VERSION --exclude protoc-c;
fi