forked from google/libprotobuf-mutator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (56 loc) · 1.77 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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