tgs-req: strip forwardable and proxiable if the server is disallowed
[heimdal.git] / .travis.yml
blobe00616a3c12f9e8dceef804424b911e11b72626d
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 = osx ]; then brew update; fi
17     - if [ $TRAVIS_OS_NAME = osx ]; then brew install cpanm bison flex berkeley-db lmdb openldap openssl; fi
18     - if [ $TRAVIS_OS_NAME = osx ]; then sudo cpanm install JSON; fi
19     - mkdir ci-build
20     - mkdir coverity-build
21     - ./autogen.sh
23 install:
24     - cd ci-build
25     - if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
26     - |
27       if [ $TRAVIS_OS_NAME = osx ]; then
28           LDFLAGS="-L/usr/local/opt/berkeley-db/lib -L/usr/local/opt/lmdb/lib" \
29           CFLAGS="-I/usr/local/opt/lmdb/include" \
30           ../configure --prefix=/tmp/heimdal \
31                   --enable-static=no \
32                   --enable-pthread-support \
33                   --disable-afs-support \
34                   --disable-ndbm-db \
35                   --with-openldap=/usr/local/opt/openldap \
36                   --with-openssl=/usr/local/opt/openssl/ \
37                   --with-hcrypto-default-backend=ossl \
38                   --with-berkeley-db \
39                   --with-berkeley-db-include=/usr/local/opt/berkeley-db/include
40       else
41           ../configure --enable-maintainer-mode $COVERAGE
42       fi
43     - ulimit -c unlimited; make -j3
45 script:
46     - if [ x${COVERITY_SCAN_BRANCH} != x1 ]; then ulimit -c unlimited; make check; fi
48 after_script:
49     - if [ -n "$COVERAGE" ]; then coveralls --gcov-options '\-lp'; fi
51 after_failure:
52     - find . -name test-suite.log -print0 | xargs -0 cat
53     - 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
55 compiler:
56     - clang
57     - gcc
59 matrix:
60     include:
61       - os: linux
62         compiler: gcc
63         env: COVERAGE=--enable-gcov
64     exclude:
65       - os: osx
66         compiler: gcc
68 notifications:
69     email:
70         on_success: change
71         on_failure: always
73 addons:
75     coverity_scan:
76         project:
77             name: "heimdal/heimdal"
78             description: "Build submitted via Travis CI"
79         notification_email: heimdal-builders@secure-endpoints.com
80         build_command_prepend: ../configure --enable-maintainer-mode
81         build_command: make
82         branch_pattern: coverity_scan