Added more configurations to the Travis build matrix.
[platform/upstream/libexif.git] / .travis.yml
1 # Travis CI configuration file
2
3 sudo: false
4
5 language: c
6
7 # Install autopoint on Ubuntu (needed for gettext)
8 addons:
9   apt:
10     packages:
11     - autopoint
12
13 env:
14   matrix:
15     - CONFIG=normal
16     - CONFIG=c90
17     - CONFIG=stackprotect
18   global:
19     - MAKEFLAGS='-j 2'
20
21 script:
22   # Ensure brew gettext is in the PATH so autopoint is found on OS X
23   - PATH="$PATH:/usr/local/opt/gettext/bin" autoreconf -sivf
24   - if [ "$CONFIG" = "normal" ] ; then CFLAGS='-Wall -Wextra -O3'; fi
25   - if [ "$CONFIG" = "c90" ] ; then CFLAGS='-std=iso9899:1990 -D_XOPEN_SOURCE=500 -Wall -Wextra -O3'; fi
26   - if [ "$CONFIG" = "stackprotect" ] ; then CFLAGS='-g -O0 -fstack-protector-all'; fi
27   - ./configure --prefix="${HOME}" CFLAGS="$CFLAGS" || { tail -300 config.log; false; }
28   - make
29   - make check
30   - make install
31
32 compiler:
33   - clang
34   - gcc
35
36 os:
37   - linux
38   - osx