-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
43 lines (39 loc) · 1.15 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
# Default parameters, even this default build is excluded in the build
# matrix below. We define so Travis doesn't think this is a Ruby
# project.
#
os: linux
language: c
compiler: gcc
# Define the default CFLAGS used by all builds as a YAML anchor.
default-cflags: &default-cflags
CFLAGS="-Wall -Wno-unused-parameter -Wno-unused-function"
#CFLAGS="-Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-function"
# The default build is Linux with gcc. Add additional builds to the
# matrix here.
matrix:
# Exclude the default build so any the builds in the matrix will be done.
exclude:
- os: linux
compiler: gcc
include:
# Linux, gcc, tests enabled.
- os: linux
compiler: gcc
env:
- NAME="linux,gcc"
- *default-cflags
# Linux, clang. For this build we'll also enable -Wshadow.
- os: linux
compiler: clang
env:
- NAME="linux,clang"
- *default-cflags
- EXTRA_CFLAGS="-Wshadow"
# Change this to your needs
script:
- ./autogen.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
./configure || { echo "!!!! ERROR !!!!"; cat config.log && false; }
fi
- make