You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.8 KiB
67 lines
1.8 KiB
os: linux
|
|
dist: xenial
|
|
sudo: true
|
|
|
|
language: cpp
|
|
|
|
addons:
|
|
apt:
|
|
packages: &common_packages
|
|
- ninja-build
|
|
- liblzma-dev
|
|
- libz-dev
|
|
sources: &common_sources
|
|
- ubuntu-toolchain-r-test
|
|
|
|
env:
|
|
global: GCC_VERSION=7
|
|
|
|
matrix:
|
|
include:
|
|
- env: BUILD_TYPE=Release CC_COMPILER=clang CXX_COMPILER=clang++
|
|
addons: &clang
|
|
apt:
|
|
packages:
|
|
- *common_packages
|
|
- clang
|
|
sources:
|
|
- *common_sources
|
|
|
|
- env: BUILD_TYPE=Debug CC_COMPILER=clang CXX_COMPILER=clang++
|
|
addons: *clang
|
|
|
|
- env: BUILD_TYPE=Release CC_COMPILER=gcc-${GCC_VERSION} CXX_COMPILER=g++-${GCC_VERSION}
|
|
addons: &gcc
|
|
apt:
|
|
packages:
|
|
- *common_packages
|
|
- g++-7
|
|
- gcc-7
|
|
sources:
|
|
- *common_sources
|
|
|
|
- env: BUILD_TYPE=Debug CC_COMPILER=gcc-${GCC_VERSION} CXX_COMPILER=g++-${GCC_VERSION}
|
|
addons: *gcc
|
|
|
|
- env:
|
|
install:
|
|
before_script:
|
|
script:
|
|
- travis_retry wget --quiet -O - https://raw.githubusercontent.com/cpplint/cpplint/master/cpplint.py | python - --recursive src examples
|
|
|
|
install:
|
|
- mkdir -p deps && cd deps
|
|
- travis_retry wget --no-check-certificate --quiet -O - https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz | tar --strip-components=1 -xz
|
|
- export PATH=${TRAVIS_BUILD_DIR}/deps/bin:${PATH}
|
|
- cd -
|
|
|
|
before_script:
|
|
- mkdir -p build && cd build
|
|
- rm -rf *
|
|
- cmake .. -GNinja -DLIB_PROTO_MUTATOR_WITH_ASAN=ON -DLIB_PROTO_MUTATOR_DOWNLOAD_PROTOBUF=ON -DCMAKE_C_COMPILER=${CC_COMPILER} -DCMAKE_CXX_COMPILER=${CXX_COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
script:
|
|
- export ASAN_OPTIONS=detect_leaks=0
|
|
- ninja
|
|
- ninja check
|
|
- DESTDIR="/tmp/testing/" ninja install |