.travis.yml 1.41 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}"
27
        - CFLAGS="${CFLAGS} -O0 -g -fPIC"
28
        - LD_LIBRARY_PATH="${HOME}/.local/lib"
29
        - DYLD_LIBRARY_PATH="${HOME}/.local/lib"
30
        - SOCKET_WRAPPER_DIR="${HOME}/test-dir"
Marek Vavruša's avatar
Marek Vavruša committed
31
before_script:
32
    - ./scripts/bootstrap-depends.sh ${HOME}/.local
33
    - mkdir ${SOCKET_WRAPPER_DIR}
Marek Vavruša's avatar
Marek Vavruša committed
34
script:
35
    - make -j2 install COVERAGE=1 PREFIX=${HOME}/.local
36
    - ./daemon/kresd -h
37
    - make check COVERAGE=1 PREFIX=${HOME}/.local
38
    - make check-integration COVERAGE=1 PREFIX=${HOME}/.local
39
after_success:
40
    - test $TRAVIS_OS_NAME = linux && coveralls -i lib -i daemon -x ".c" --gcov-options '\-lp'
Marek Vavruša's avatar
Marek Vavruša committed
41 42 43
sudo: false
cache:
    directories:
44
    - ${HOME}/.local
45
    - ${HOME}/.cache/pip
46 47 48 49 50
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