.travis.yml 1.11 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
15 16 17 18
matrix:
    fast_finish: true
    allow_failures:
        - os: osx
Marek Vavruša's avatar
Marek Vavruša committed
19 20
env:
    global:
21
        - PKG_CONFIG_PATH="${HOME}/.local/lib/pkgconfig"
22
        - PATH="${HOME}/.local/bin:/usr/local/bin:${PATH}"
23
        - CFLAGS="${CFLAGS} -O0 -g -fPIC -DNDEBUG"
24
        - LD_LIBRARY_PATH="${HOME}/.local/lib"
25
        - DYLD_LIBRARY_PATH="${HOME}/.local/lib"
26
        - MAKEOPTS="-j2"
Marek Vavruša's avatar
Marek Vavruša committed
27
before_script:
28
    - ./scripts/bootstrap-depends.sh ${HOME}/.local
Marek Vavruša's avatar
Marek Vavruša committed
29
script:
30
    - make ${MAKEOPTS} install check COVERAGE=1 PREFIX=${HOME}/.local
31
after_success:
32
    - test $TRAVIS_OS_NAME = linux && coveralls -i lib -x ".c" --gcov-options '\-lp'
Marek Vavruša's avatar
Marek Vavruša committed
33 34 35
sudo: false
cache:
    directories:
36
    - ${HOME}/.local
37
    - ${HOME}/.cache/pip
38 39 40 41 42
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