]> jfr.im git - solanum.git/blame - .travis.yml
Don't enable warnings on osx
[solanum.git] / .travis.yml
CommitLineData
e44504eb
VI
1# Travis-CI Build for charybdis
2# see travis-ci.org for details
3
4language: c
5
6# Use the faster container-based infrastructure.
7sudo: false
8
a52e9463
SA
9notifications:
10 irc:
11 channels:
12 - "chat.freenode.net#charybdis"
13
e44504eb
VI
14matrix:
15 include:
16 - os: linux
17 compiler: gcc
18 addons:
19 apt:
20 sources: ['ubuntu-toolchain-r-test']
3a484c2c 21 packages: ['gcc-4.8', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo']
53aeb030 22 env: COMPILER=gcc-4.8
e44504eb
VI
23
24 - os: linux
25 compiler: gcc
26 addons:
27 apt:
28 sources: ['ubuntu-toolchain-r-test']
3a484c2c 29 packages: ['gcc-4.9', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo']
53aeb030 30 env: COMPILER=gcc-4.9
e44504eb
VI
31
32 - os: linux
33 compiler: gcc
34 addons:
35 apt:
36 sources: ['ubuntu-toolchain-r-test']
3a484c2c 37 packages: ['gcc-5', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo']
53aeb030 38 env: COMPILER=gcc-5
e44504eb 39
0e5b57c4
SA
40 - os: linux
41 compiler: gcc
42 addons:
43 apt:
44 sources: ['ubuntu-toolchain-r-test']
45 packages: ['gcc-7', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo']
53aeb030 46 env: COMPILER=gcc-7
0e5b57c4
SA
47
48 - os: linux
49 compiler: gcc
50 addons:
51 apt:
52 sources: ['ubuntu-toolchain-r-test']
53 packages: ['gcc-8', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo']
53aeb030 54 env: COMPILER=gcc-8
0e5b57c4 55
e44504eb
VI
56 - os: linux
57 compiler: clang
58 addons:
59 apt:
ce960aa5
SA
60 sources: ['ubuntu-toolchain-r-test']
61 packages: ['clang-3.9', 'llvm-3.9-dev', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo']
62 env: COMPILER=clang-3.9
63
64 - os: linux
65 compiler: clang
66 addons:
67 apt:
68 sources: ['ubuntu-toolchain-r-test']
69 packages: ['clang-4.0', 'llvm-4.0-dev', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo']
70 env: COMPILER=clang-4.0
71
72 - os: linux
73 compiler: clang
74 addons:
75 apt:
76 sources: ['ubuntu-toolchain-r-test']
77 packages: ['clang-5.0', 'llvm-5.0-dev', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo']
78 env: COMPILER=clang-5.0
79
80 - os: linux
81 compiler: clang
82 addons:
83 apt:
84 sources: ['ubuntu-toolchain-r-test']
85 packages: ['clang-6.0', 'llvm-6.0-dev', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo']
86 env: COMPILER=clang-6.0
e44504eb
VI
87
88 - os: osx
5889d67d 89 osx_image: xcode7.3
e44504eb 90 compiler: clang
9ea48ec3 91 env: COMPILER=clang LIBTOOLIZE=glibtoolize
e44504eb 92
e44504eb
VI
93cache:
94 apt:
95 ccache:
96
97script:
9ea48ec3 98 - bash autogen.sh
f47ac708
SA
99 - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then CC=$COMPILER CFLAGS=\"-Werror -Wno-unused-value -Wno-unused-parameter\" ./configure --with-shared-sqlite --with-assert=hard --enable-warnings; fi"
100 - "if [ ${TRAVIS_OS_NAME} = 'osx' ]; then CC=$COMPILER ./configure --with-shared-sqlite; fi"
e44504eb 101 - make -j4
728c3ed5 102 - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then make check; fi"
e44504eb 103 - make install
82546fb7 104 - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then make -C doc/oper-guide html man info; fi"