mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 13:31:02 +08:00
defc6f044b
This reverts commit 0585e053a8723fbdea4deefe17b6a6512274cde5. Now that we autodetect any needed flags to enable C++11 support with the AX_CXX_COMPILE_STDCXX macro, we no longer need to force this in .travis.yml.
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
language:
|
|
- c
|
|
- cpp
|
|
|
|
sudo: required
|
|
dist: xenial
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- lcov
|
|
- valgrind
|
|
|
|
env:
|
|
global:
|
|
- PROTOBUF_VERSION=3.6.1
|
|
- PKG_CONFIG_PATH=$HOME/protobuf-$PROTOBUF_VERSION-bin/lib/pkgconfig
|
|
|
|
install:
|
|
- pip install --user cpp-coveralls
|
|
- 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 )
|
|
|
|
script:
|
|
- ./autogen.sh
|
|
- ./configure && make -j2 distcheck VERBOSE=1 && make clean
|
|
- ./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
|
|
|
|
after_success:
|
|
- cpp-coveralls --build-root . --exclude t/ --exclude /usr/include --exclude protobuf-$PROTOBUF_VERSION --exclude protoc-c
|