summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 5456c83b3d45eb6506071e5590833ab044f6641c (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
language: c
os:
    - osx
osx_image: xcode10.2
addons:
    homebrew:
        packages:
            - cmocka
            - luajit
            - libuv
            - lmdb
            - meson
compiler:
    - clang
notifications:
    email:
        on_success: never
        on_failure: never
matrix:
    fast_finish: true
env:
    global:
        - KNOT_DNS_VERSION=2.9
        - MALLOC_CHECK_=3
        - MALLOC_PERTURB_=223
before_script:
    - git clone -b ${KNOT_DNS_VERSION} https://gitlab.labs.nic.cz/knot/knot-dns.git
    - cd knot-dns
    - autoreconf -fi
    - ./configure --disable-static --disable-fastparser --disable-documentation --disable-daemon --disable-utilities --with-lmdb=no
    - make -j2 install
    - cd ..
script:
    - meson build_darwin --default-library=static --buildtype=debugoptimized --prefix=${HOME}/.local/usr -Dc_args='-fno-omit-frame-pointer'
    - ninja -C build_darwin -v install
    - meson test -C build_darwin --suite unit
    - ${HOME}/.local/usr/sbin/kresd -h
    - ${HOME}/.local/usr/sbin/kresd -V
    - echo "quit()" | ${HOME}/.local/usr/sbin/kresd -a 127.0.0.1@53535 .
sudo: false