forked from Sannis/protobuf2json-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (58 loc) · 1.41 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
language: c
compiler:
- gcc
- clang
os:
- linux
- osx
env:
-
- MY_SANITIZE=address
- MY_SANITIZE=undefined
- MY_SANITIZE=integer
- MY_VALGRIND=1
- MY_COVERAGE=1
matrix:
exclude:
# Pairs because of some comilers does not support some features at all
- compiler: gcc
env: MY_SANITIZE=address
- compiler: gcc
env: MY_SANITIZE=undefined
- compiler: gcc
env: MY_SANITIZE=integer
- compiler: clang
env: MY_VALGRIND=1
- compiler: clang
env: MY_COVERAGE=1
# OS-dependent features
- os: osx
compiler: clang
env: MY_SANITIZE=address
- os: osx
compiler: clang
env: MY_SANITIZE=undefined
- os: osx
compiler: clang
env: MY_SANITIZE=integer
- os: osx
compiler: gcc
env: MY_VALGRIND=1
- os: osx
compiler: gcc
env: MY_COVERAGE=1
before_install:
- ./.travis.before_install.sh
install:
- ./autogen.sh
- ./configure
- if [ "x$MY_SANITIZE" != "x" ]; then ./configure --enable-my-sanitize=$MY_SANITIZE; fi
- if [ "x$MY_VALGRIND" = "x1" ]; then ./configure --enable-my-valgrind; fi
- if [ "x$MY_COVERAGE" = "x1" ]; then ./configure --enable-my-coverage; fi
- make
script:
- make cppcheck
- make test
- make benchmark
after_success:
- if [ "x$MY_COVERAGE" = "x1" ]; then cpp-coveralls --build-root src --exclude test/ --exclude include/ --exclude src/.libs --gcov-options '\-lp'; fi