mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 13:31:02 +08:00
.travis.yml: Update to xenial
This commit updates the base Travis-CI image from trusty to xenial, which ships with a slightly more modern compiler.
This commit is contained in:
parent
4912c5a574
commit
fe36c1677a
49
.travis.yml
49
.travis.yml
@ -2,45 +2,19 @@ language:
|
||||
- c
|
||||
- cpp
|
||||
|
||||
# Use Trusty VM
|
||||
sudo: required
|
||||
dist: trusty
|
||||
dist: xenial
|
||||
|
||||
matrix:
|
||||
include:
|
||||
# Test default gcc
|
||||
- env: GCC_VERSION=4.8
|
||||
os: linux
|
||||
compiler: gcc
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- lcov
|
||||
- valgrind
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- lcov
|
||||
- valgrind
|
||||
|
||||
# Test gcc-5.0
|
||||
- env: GCC_VERSION=5
|
||||
os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- valgrind
|
||||
- g++-5
|
||||
- gcc-5
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
env:
|
||||
global:
|
||||
- PROTOBUF_VERSION=3.0.2
|
||||
- PKG_CONFIG_PATH=$HOME/protobuf-$PROTOBUF_VERSION-bin/lib/pkgconfig
|
||||
|
||||
before_install:
|
||||
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
|
||||
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
|
||||
- if [ "$GCC_VERSION" == "4.8" ]; then export CXX="g++" CC="gcc"; fi
|
||||
- which $CXX
|
||||
- which $CC
|
||||
- which valgrind
|
||||
global:
|
||||
- PROTOBUF_VERSION=3.0.2
|
||||
- PKG_CONFIG_PATH=$HOME/protobuf-$PROTOBUF_VERSION-bin/lib/pkgconfig
|
||||
|
||||
install:
|
||||
- pip install --user cpp-coveralls
|
||||
@ -51,8 +25,7 @@ install:
|
||||
script:
|
||||
- ./autogen.sh
|
||||
- ./configure && make -j2 distcheck VERBOSE=1 && make clean
|
||||
- if [ "$GCC_VERSION" != "4.8" ]; then ./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; fi
|
||||
- if [ "$CC" = "gcc" ]; then ./configure --enable-code-coverage && make -j2 && make check; fi
|
||||
- ./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:
|
||||
- if [ "$CC" = "gcc" ]; then cpp-coveralls --build-root . --exclude t/ --exclude /usr/include --exclude protobuf-$PROTOBUF_VERSION --exclude protoc-c; fi
|
||||
- cpp-coveralls --build-root . --exclude t/ --exclude /usr/include --exclude protobuf-$PROTOBUF_VERSION --exclude protoc-c
|
||||
|
Loading…
x
Reference in New Issue
Block a user