]> jfr.im git - irc/freenode/solanum.git/blob - .travis.yml
Forget the old drain reason when rehashing
[irc/freenode/solanum.git] / .travis.yml
1 # Travis-CI Build for solanum
2 # see travis-ci.org for details
3
4 language: c
5
6 # Use the faster container-based infrastructure.
7 dist: bionic
8 sudo: false
9
10 branches:
11 only:
12 - main
13
14 matrix:
15 include:
16 - os: linux
17 compiler: gcc-7
18 addons:
19 apt:
20 packages: ['gcc-7', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo', 'libhyperscan-dev']
21
22 - os: linux
23 compiler: gcc-8
24 addons:
25 apt:
26 packages: ['gcc-8', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo', 'libhyperscan-dev']
27
28 - os: linux
29 compiler: clang-7
30 addons:
31 apt:
32 packages: ['clang-7', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo', 'libhyperscan-dev']
33
34 - os: linux
35 compiler: clang-8
36 addons:
37 apt:
38 packages: ['clang-8', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo', 'libhyperscan-dev']
39
40 - os: osx
41 osx_image: xcode7.3
42 compiler: clang
43 env: LIBTOOLIZE=glibtoolize
44
45 cache:
46 apt:
47 ccache:
48
49 script:
50 - bash autogen.sh
51 - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then CFLAGS=\"-Werror -Wno-unused-value -Wno-unused-parameter\" ./configure --with-shared-sqlite --enable-assert=hard --enable-warnings; fi"
52 - "if [ ${TRAVIS_OS_NAME} = 'osx' ]; then ./configure --with-shared-sqlite; fi"
53 - make -j4
54 - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then make check; fi"
55 - make install
56 - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then make -C doc/oper-guide html man info; fi"