libtommath: Fix possible integer overflow CVE-2023-36328
[heimdal.git] / .travis.yml
blob1a1f587e63d6ae1574e40264be8f7af79f9276b4
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 apport; fi
15     - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -qq curl 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 HOMEBREW_NO_AUTO_UPDATE=1 brew install cpanm bison flex berkeley-db lmdb openldap openssl; fi
18     - if [ $TRAVIS_OS_NAME = osx ]; then sudo cpanm install JSON; fi
19     - if [ $TRAVIS_OS_NAME = osx -a -n "$COVERAGE" ]; then brew install jq; fi
20     - mkdir ci-build
21     - mkdir coverity-build
22     - ./autogen.sh
24 install:
25     - cd ci-build
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 \
31                   --srcdir=`dirname "$PWD"` \
32                   --prefix=/tmp/heimdal \
33                   --enable-maintainer-mode $COVERAGE \
34                   --enable-static=no \
35                   --enable-pthread-support \
36                   --disable-afs-support \
37                   --disable-ndbm-db \
38                   --with-openldap=/usr/local/opt/openldap \
39                   --with-openssl=/usr/local/opt/openssl/ \
40                   --with-hcrypto-default-backend=ossl \
41                   --with-berkeley-db \
42                   --with-berkeley-db-include=/usr/local/opt/berkeley-db/include
43       else
44           # This list of -Wno-error options should be reduced over time where possible
45           if [ x"$TRAVIS_COMPILER" != x"clang" ]; then
46               CFLAGS="-Wno-error=empty-body -Wno-error=shadow -Wno-error=unused-value -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations" ../configure --enable-developer --srcdir=`dirname "$PWD"` --enable-maintainer-mode $COVERAGE
47           else
48               CFLAGS="-Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations" ../configure --enable-developer --srcdir=`dirname "$PWD"` --enable-maintainer-mode $COVERAGE
49           fi
50       fi
51     - ulimit -c unlimited; make -j3
53 script:
54     - if [ x${COVERITY_SCAN_BRANCH} != x1 ]; then ulimit -c unlimited; make check${MAKE_CHECK_SUFFIX}; fi
56 after_script:
57     - if [ -n "$COVERAGE" ]; then ../tools/coveralls-tool -O $PWD -S ..; fi
58     - find . -name \*.log -print0|xargs -0 grep '^==[1-9]'
60 after_failure:
61     - find . -name test-suite.log -print0 | xargs -0 cat
62     - if [ $TRAVIS_OS_NAME = linux ]; then echo "thread apply all bt" > x; find . -name core -print | while read core; do gdb -batch -x x `file "$core"|sed -e "s/^[^']*'//" -e "s/[ '].*$//"` "$core"; done; fi
63     - if [ $TRAVIS_OS_NAME = osx ]; then find . -name core -print | while read core; do echo bt | lldb --core "$core" `file "$core"|sed -e "s/^[^']*'//" -e "s/[ '].*$//"` "$core"; done; fi
65 compiler:
66     - clang
67     - gcc
69 matrix:
70     include:
71       - os: linux
72         compiler: gcc
73         env: COVERAGE=--enable-gcov
74     exclude:
75       - os: osx
76         compiler: gcc
78 notifications:
79     email:
80         on_success: change
81         on_failure: always
83 addons:
85     coverity_scan:
86         project:
87             name: "heimdal/heimdal"
88             description: "Build submitted via Travis CI"
89         notification_email: heimdal-builders@secure-endpoints.com
90         build_command_prepend: ../configure --enable-maintainer-mode
91         build_command: make
92         branch_pattern: coverity_scan