tags:
- docker
-build:darwin:
- <<: *test_nodep
- when: delayed
- start_in: 2 minutes
- script:
- - ci/travis.py ${CI_COMMIT_REF_NAME}
-
deckard:
<<: *test_flaky
variables:
# }}}
# extended {{{
+build:darwin:
+ <<: *test_nodep
+ stage: extended
+ when: delayed
+ start_in: 5 minutes # give the build in Travis CI time to finish
+ allow_failure: true # https://github.com/Homebrew/homebrew-core/issues/37169
+ script:
+ - ci/travis.py ${CI_COMMIT_REF_NAME}
+
pytests:
<<: *test_flaky
stage: extended # use this stage to avoid clash with other resource-intensive jobs
- luajit
- libuv
- lmdb
+ - meson
+ update: true
compiler:
- clang
notifications:
env:
global:
- KNOT_DNS_VERSION=v2.7.6
- - DYLD_LIBRARY_PATH="${HOME}/.local/lib"
- MALLOC_CHECK_=3
- MALLOC_PERTURB_=223
before_script:
- make -j2 install
- cd ..
script:
- - CFLAGS="-O2 -g -fno-omit-frame-pointer -DDEBUG" make -j2 install check V=1 PREFIX=${HOME}/.local DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}
- - ./daemon/kresd -h
- - ./daemon/kresd -V
- - echo "quit()" | ./daemon/kresd -a 127.0.0.1@53535 .
+ - meson build_darwin --default-library=static --buildtype=debugoptimized --prefix=${HOME}/.local -Dc_args='-fno-omit-frame-pointer'
+ - ninja -C build_darwin install
+ - ${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
libedit = dependency('libedit', required: false)
if libedit.found()
build_client = true
- else
- # fallback lib
- # TODO why call find_library? osx workaround?
+ else # darwin workaround: missing pkgconfig
libedit = meson.get_compiler('c').find_library('edit', required: get_option('client'))
if libedit.found()
build_client = true
libdnssec = dependency('libdnssec', version: knot_version)
libzscanner = dependency('libzscanner', version: knot_version)
libuv = dependency('libuv', version: '>=1.7')
-lmdb = dependency('lmdb')
+lmdb = dependency('lmdb', required: false)
+if not lmdb.found() # darwin workaround: missing pkgconfig
+ lmdb = meson.get_compiler('c').find_library('lmdb')
+endif
gnutls = dependency('gnutls')
luajit = dependency('luajit')
message('------------------------------')
'mock_cmodule.c',
])
-mock_cmodule_lib = shared_library(
+mock_cmodule_mod = shared_module(
'mock_cmodule',
mock_cmodule_src,
name_prefix: '',
dependencies: libkres_dep,
)
-mock_cmodule_dep = declare_dependency(
- link_with: mock_cmodule_lib,
-)
-
# executables with tests
foreach unit_test : unit_tests
exec_test = executable(