.travis.yml 1.34 KB
Newer Older
Marek Vavruša's avatar
Marek Vavruša committed
1
language: c
2 3 4
os:
    - linux
    - osx
Marek Vavruša's avatar
Marek Vavruša committed
5
compiler:
6
    - clang
7 8 9 10
notifications:
    email:
        on_success: change
        on_failure: change
Marek Vavruša's avatar
Marek Vavruša committed
11 12
    slack:
        rooms: cznic:xNJmvHU2xu2aGtN7Y2eqHKoD
13 14
        on_success: change
        on_failure: change
Ondřej Surý's avatar
Ondřej Surý committed
15
    webhooks:
16 17 18
        urls: https://webhooks.gitter.im/e/66485d8f591942052faa
        on_success: always
        on_failure: always
19 20 21 22
matrix:
    fast_finish: true
    allow_failures:
        - os: osx
Marek Vavruša's avatar
Marek Vavruša committed
23 24
env:
    global:
25
        - PKG_CONFIG_PATH="${HOME}/.local/lib/pkgconfig"
26
        - PATH="${HOME}/.local/bin:/usr/local/bin:${PATH}"
Marek Vavruša's avatar
Marek Vavruša committed
27
        - CFLAGS="-O0 -g -fno-omit-frame-pointer"
28
        - LD_LIBRARY_PATH="${HOME}/.local/lib"
29
        - DYLD_LIBRARY_PATH="${HOME}/.local/lib"
Marek Vavruša's avatar
Marek Vavruša committed
30
before_script:
31
    - ./scripts/bootstrap-depends.sh ${HOME}/.local
Marek Vavruša's avatar
Marek Vavruša committed
32
script:
33
    - make -j2 install COVERAGE=1 PREFIX=${HOME}/.local
34
    - ./daemon/kresd -h
35
    - make check COVERAGE=1 PREFIX=${HOME}/.local
36
    - make -j2 check-integration COVERAGE=1 PREFIX=${HOME}/.local
37
after_success:
38
    - test $TRAVIS_OS_NAME = linux && coveralls -i lib -i daemon -x ".c" --gcov-options '\-lp'
Marek Vavruša's avatar
Marek Vavruša committed
39 40 41
sudo: false
cache:
    directories:
42
    - ${HOME}/.local
43
    - ${HOME}/.cache/pip
44 45 46 47 48
before_cache:
    - rm -f ${HOME}/.local/bin/kresd
    - rm -f ${HOME}/.local/lib/libkres.a
    - rm -rf ${HOME}/.local/include/libkres
    - rm -rf ${HOME}/.local/lib/kdns_modules