summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: d9027ea98db7e4c5f88044756b341827f89b118c (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
language: c
os: linux
dist: bionic
addons:
  apt:
    packages:
      - libtool-bin
env:
  global:
    - MARGS="-j2"
matrix:
  include:
    - name: Default
    - name: Static
      env: CONFIG="--enable-static"
    - name: Maintainer-mode
      env: CONFIG="--enable-maintainer-mode"
    - name: Pool-debug
      env: CONFIG="--enable-pool-debug"
    - name: Pool-debug, maintainer-mode
      env: CONFIG="--enable-pool-debug --enable-maintainer-mode"
    - name: Maintainer-mode, no IPv6
      env: CONFIG="--enable-maintainer-mode --disable-ipv6"
    - name: Maintainer-mode, -Werror
      env: NOTEST_CFLAGS=-Werror
           CONFIG="--enable-maintainer-mode"
    - name: Maintainer-mode, -Werror (Xenial)
      dist: xenial
      env: NOTEST_CFLAGS=-Werror
           CONFIG="--enable-maintainer-mode"
    - name: Maintainer-mode, -Werror (Focal)
      dist: focal
      env: NOTEST_CFLAGS=-Werror
           CONFIG="--enable-maintainer-mode"
    - name: GCC 10, maintainer-mode, -Werror (Focal)
      dist: focal
      env: CC=gcc-10
           NOTEST_CFLAGS="-Werror -O2"
           CONFIG="--enable-maintainer-mode"
      addons:
        apt:
          sources:
            - sourceline: 'ppa:ubuntu-toolchain-r/test'
          packages:
            - libtool-bin
            - gcc-10
    - name: GCC-10, ASan (Focal)
      dist: focal
      # w/o ODBC since DSO unload leaks memory and fails the tests
      env: CC=gcc-10
           NOTEST_CFLAGS="-fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer -Werror -O2"
           CONFIG="--with-odbc=no"
      addons:
        apt:
          sources:
            - sourceline: 'ppa:ubuntu-toolchain-r/test'
          packages:
            - libtool-bin
            - gcc-10
    - name: GCC-10, ASan, pool-debug (Focal)
      dist: focal
      # w/o ODBC since DSO unload leaks memory and fails the tests
      env: CC=gcc-10
           NOTEST_CFLAGS="-fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer -Werror -O2"
           CONFIG="--enable-pool-debug --with-odbc=no"
      addons:
        apt:
          sources:
            - sourceline: 'ppa:ubuntu-toolchain-r/test'
          packages:
            - libtool-bin
            - gcc-10
    - name: GCC-10, UBsan (Focal)
      dist: focal
      env: CC=gcc-10
           NOTEST_CFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer -Werror -O2"
      addons:
        apt:
          sources:
            - sourceline: 'ppa:ubuntu-toolchain-r/test'
          packages:
            - libtool-bin
            - gcc-10

before_script: sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'

script: ./buildconf && ./configure $CONFIG && make $MARGS && make check