krb5: always zero elastic storage
[heimdal.git] / .travis.yml
blob8961e6a9d278373d98a10fffcfb53301066b2d7c
1 os:
2     - linux
3     - osx
5 language: c
7 env:
8     global:
9         secure: "YKG77M7zMvJ+IeV2ziw//HcHqMqFoAzIZlE99Yw/aOn5pvMYKq6Ep7EFVhbfDu9yN0T7M5csCGQeH7/ylDlsZSRMUw72844ezMDM8e10T/lW/T/OYN7j1ZVHh3WSJgS+1D9VG6/Y0OY1Si3lb7PcOdAIU0fPJV5xQONN2+hpJeI="
11 before_install:
12     - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update -qq; fi
13     - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -qq bison comerr-dev flex libcap-ng-dev libdb-dev libedit-dev libjson-perl libldap2-dev libncurses5-dev libperl4-corelibs-perl libsqlite3-dev libkeyutils-dev pkg-config python ss-dev texinfo unzip netbase keyutils; fi
14     - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -qq ldap-utils gdb; fi
15     - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -qq libmicrohttpd-dev; fi
16     - if [ $TRAVIS_OS_NAME = linux -a -n "$COVERAGE" ]; then sudo apt-get install -qq jq; fi
17     - if [ $TRAVIS_OS_NAME = osx ]; then brew update; fi
18     - if [ $TRAVIS_OS_NAME = osx ]; then brew install cpanm bison flex berkeley-db lmdb openldap openssl; fi
19     - if [ $TRAVIS_OS_NAME = osx ]; then sudo cpanm install JSON; fi
20     - if [ $TRAVIS_OS_NAME = osx -a -n "$COVERAGE" ]; then brew install jq; fi
21     - mkdir ci-build
22     - mkdir coverity-build
23     - ./autogen.sh
25 install:
26     - cd ci-build
27     - |
28       if [ $TRAVIS_OS_NAME = osx ]; then
29           LDFLAGS="-L/usr/local/opt/berkeley-db/lib -L/usr/local/opt/lmdb/lib" \
30           CFLAGS="-I/usr/local/opt/lmdb/include" \
31           ../configure \
32                   --srcdir=`dirname "$PWD"` \
33                   --prefix=/tmp/heimdal \
34                   --enable-maintainer-mode $COVERAGE \
35                   --enable-static=no \
36                   --enable-pthread-support \
37                   --disable-afs-support \
38                   --disable-ndbm-db \
39                   --with-openldap=/usr/local/opt/openldap \
40                   --with-openssl=/usr/local/opt/openssl/ \
41                   --with-hcrypto-default-backend=ossl \
42                   --with-berkeley-db \
43                   --with-berkeley-db-include=/usr/local/opt/berkeley-db/include
44       else
45           ../configure --srcdir=`dirname "$PWD"` --enable-maintainer-mode $COVERAGE
46       fi
47     - ulimit -c unlimited; make -j3
49 script:
50     - if [ x${COVERITY_SCAN_BRANCH} != x1 ]; then ulimit -c unlimited; make check; fi
52 after_script:
53     - |
54       if [ -n "$COVERAGE" ]; then
55           ../tools/coveralls-tool -v -o cov.json -O $PWD -S ..
56           curl -vvvsf -X POST -F "json_file=@cov.json" -F "Filename=json_file" https://coveralls.io/api/v1/jobs
57       fi
59 after_failure:
60     - find . -name test-suite.log -print0 | xargs -0 cat
61     - if [ $TRAVIS_OS_NAME = linux ]; then echo "thread apply all bt" > x; find . -name core.\* -print | while read gdb; do gdb -batch -x x `file "$core"|sed -e "s/^[^']*'//" -e "s/[ '].*$//"` "$core"; done; fi
63 compiler:
64     - clang
65     - gcc
67 matrix:
68     include:
69       - os: linux
70         compiler: gcc
71         env: COVERAGE=--enable-gcov
72     exclude:
73       - os: osx
74         compiler: gcc
76 notifications:
77     email:
78         on_success: change
79         on_failure: always
81 addons:
83     coverity_scan:
84         project:
85             name: "heimdal/heimdal"
86             description: "Build submitted via Travis CI"
87         notification_email: heimdal-builders@secure-endpoints.com
88         build_command_prepend: ../configure --enable-maintainer-mode
89         build_command: make
90         branch_pattern: coverity_scan