]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Restore Travis-CI configuration for OS X builds
authorOndřej Surý <ondrej@sury.org>
Tue, 17 Jan 2017 15:18:03 +0000 (16:18 +0100)
committerOndřej Surý <ondrej@sury.org>
Tue, 17 Jan 2017 15:18:33 +0000 (16:18 +0100)
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..5bedddb
--- /dev/null
@@ -0,0 +1,48 @@
+language: c
+os:
+    - osx
+compiler:
+    - clang
+notifications:
+    email:
+        on_success: change
+        on_failure: change
+    slack:
+        rooms: cznic:xNJmvHU2xu2aGtN7Y2eqHKoD
+        on_success: change
+        on_failure: change
+    webhooks:
+        urls: https://webhooks.gitter.im/e/66485d8f591942052faa
+        on_success: always
+        on_failure: always
+matrix:
+    fast_finish: true
+env:
+    global:
+        - PKG_CONFIG_PATH="${HOME}/.local/lib/pkgconfig"
+        - PATH="${HOME}/.local/bin:/usr/local/bin:${PATH}"
+        - LD_LIBRARY_PATH="${HOME}/.local/lib"
+        - DYLD_LIBRARY_PATH="${HOME}/.local/lib"
+        - MALLOC_CHECK_=3
+        - MALLOC_PERTURB_=223
+before_script:
+    - echo $CFLAGS
+    - BOOTSTRAP_CLEANUP=1 ./scripts/bootstrap-depends.sh ${HOME}/.local
+script:
+    - CFLAGS="-O2 -g -fno-omit-frame-pointer -DDEBUG" make -j2 install check V=1 COVERAGE=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 .
+    - CFLAGS="-O2 -g -fno-omit-frame-pointer -DDEBUG" make -j2 check-integration COVERAGE=1 PREFIX=${HOME}/.local DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}
+after_success:
+    - if test $TRAVIS_OS_NAME = linux; then coveralls -i lib -i daemon -x ".c" --gcov-options '\-lp'; fi
+sudo: false
+cache:
+    directories:
+    - ${HOME}/.local
+    - ${HOME}/.cache/pip
+before_cache:
+    - rm -f ${HOME}/.local/sbin/kresd
+    - rm -f ${HOME}/.local/lib/libkres.*
+    - rm -rf ${HOME}/.local/include/libkres
+    - rm -rf ${HOME}/.local/lib/kdns_modules