.travis.yml 1.61 KB
Newer Older
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
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
31
    - rvm get stable || true
32
script:
33
    - CFLAGS="-O2 -g -fno-omit-frame-pointer -DDEBUG" make -j2 install check V=1 PREFIX=${HOME}/.local DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}
34 35
    - ./daemon/kresd -h
    - ./daemon/kresd -V
36
    - echo "quit()" | ./daemon/kresd -a 127.0.0.1@53535 .
37 38
    # Deckard should be OK just on Linux
    # - CFLAGS="-O2 -g -fno-omit-frame-pointer -DDEBUG" make -j2 check-integration PREFIX=${HOME}/.local DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}
39 40 41 42 43 44 45 46 47 48 49 50
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