forked from vergoh/vnstat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (65 loc) · 1.74 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
68
69
70
git:
depth: 10
language: c
matrix:
include:
- name: "Ubuntu 16.04 / GCC"
os: linux
dist: xenial
compiler: gcc
env:
- CFLAGS='-Wall -Wextra'
- CPARAMS='--enable-werror'
- name: "Ubuntu 16.04 / Clang"
os: linux
dist: xenial
compiler: clang
env:
- CFLAGS='-Weverything -Wno-padded'
- CPARAMS='--enable-werror'
- name: "Ubuntu 18.04 / GCC"
os: linux
dist: bionic
compiler: gcc
env:
- CFLAGS='-Wall -Wextra'
- CPARAMS='--enable-werror'
- name: "Ubuntu 18.04 / Clang"
os: linux
dist: bionic
compiler: clang
env:
- CFLAGS='-Weverything -Wno-padded'
- CPARAMS='--enable-werror'
- name: "Ubuntu 18.04 / Clang Sanitizers"
os: linux
dist: bionic
compiler: clang
env:
- CFLAGS='-O1 -g -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=nullability -fsanitize=implicit-conversion -fsanitize=integer'
- CPARAMS='--enable-werror'
- name: "OS X / Clang"
os: osx
osx_image: xcode11
compiler: clang
env:
- CFLAGS='-Weverything -Wno-padded -Wno-reserved-id-macro -Wno-gnu-zero-variadic-macro-arguments -Wno-sign-conversion -Wno-unreachable-code -Wno-missing-noreturn'
addons:
apt:
packages:
- libsqlite3-0
- libsqlite3-dev
- libgd3
- libgd-dev
- check
homebrew:
packages:
- gd
- sqlite
- check
script:
- ./configure ${CPARAMS} && make check || ( cat test.log ; cat test-suite.log ; exit 1 ) && ./vnstat --version && grep -iP 'sanitizer|runtime error' check_vnstat.log && exit 1 || true
notifications:
email:
on_success: always
on_failure: always