forked from vergoh/vnstat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (37 loc) · 992 Bytes
/
.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
language: c
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- CFLAGS='-Wall -Wextra'
- CPARAMS='--enable-werror'
- os: linux
dist: trusty
sudo: required
compiler: clang
env:
- CFLAGS='-Weverything -Wno-padded'
- CPARAMS='--enable-werror'
- os: osx
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
before_install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then brew install gd sqlite check ; fi
script:
- ./configure ${CPARAMS} && make check || ( cat test.log ; exit 1 ) && egrep '^[0-9]+%' test.log && ./vnstat --version
notifications:
email:
on_success: always
on_failure: always