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