.travis.yml 1.28 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
        - MAKEOPTS="-j2"
Marek Vavruša's avatar
Marek Vavruša committed
31
before_script:
32
    - ./scripts/bootstrap-depends.sh ${HOME}/.local
Marek Vavruša's avatar
Marek Vavruša committed
33
script:
34
    - make ${MAKEOPTS} install COVERAGE=1 PREFIX=${HOME}/.local
35
    - make check COVERAGE=1 PREFIX=${HOME}/.local
36
after_success:
37
    - test $TRAVIS_OS_NAME = linux && coveralls -i lib -i daemon -x ".c" --gcov-options '\-lp'
Marek Vavruša's avatar
Marek Vavruša committed
38 39 40
sudo: false
cache:
    directories:
41
    - ${HOME}/.local
42
    - ${HOME}/.cache/pip
43 44 45 46 47
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