.travis.yml 1.08 KB
Newer Older
1 2 3
language: c
os:
    - osx
Tomas Krizek's avatar
Tomas Krizek committed
4 5 6 7 8 9
addons:
    homebrew:
        packages:
            - cmocka
            - luajit
            - libuv
Tomas Krizek's avatar
Tomas Krizek committed
10
            - lmdb
11
            - meson
12 13 14 15
compiler:
    - clang
notifications:
    email:
16 17
        on_success: never
        on_failure: never
18 19 20 21
matrix:
    fast_finish: true
env:
    global:
Tomas Krizek's avatar
Tomas Krizek committed
22
        - KNOT_DNS_VERSION=2.8
23 24 25
        - MALLOC_CHECK_=3
        - MALLOC_PERTURB_=223
before_script:
Tomas Krizek's avatar
Tomas Krizek committed
26 27 28 29 30 31
    - 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 ..
32
script:
Tomas Krizek's avatar
Tomas Krizek committed
33 34 35
    - 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
36 37 38
    - ${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 .
39
sudo: false