Use Painless Security signing key
[freeradius.git] / .travis.yml
1 language: c
2 compiler:
3   - clang
4   - gcc
5 sudo: false
6 env:
7   global:
8     - PANIC_ACTION="gdb -batch -x raddb/panic.gdb %e %p 1>&0 2>&0"
9     - secure: "H+uQeyOgsIyXtIPPG2VzAG8S/8KYGHlHaWhdiNuz1LM3SMcEKoPqG6o/P+HO8HVvYnA6nelyGuEryV90UfuwGY9YC6A/pqPQvx/gXSso63Zt66XSaiZjulCSm9OV8EB3wyWF7VSQ/ZHcn+L01hIlsQXTqLprMaC33cM0FYPr9fY="
10   matrix:
11     - DO_BUILD=yes LIBS_OPTIONAL=no LIBS_SHARED=yes BUILD_CFLAGS="-DWITH_EVAL_DEBUG"
12     - DO_BUILD=yes LIBS_OPTIONAL=yes LIBS_SHARED=yes BUILD_CFLAGS="-DWITH_EVAL_DEBUG"
13     - DO_BUILD=yes LIBS_OPTIONAL=yes LIBS_SHARED=yes BUILD_CFLAGS="-DWITH_EVAL_DEBUG -O2 -g3"
14     - DO_BUILD=no
15 addons:
16   coverity_scan:
17     project:
18       name: FreeRADIUS/freeradius-server
19       version: v3.0.x
20       description: The FreeRADIUS server project
21     notification_email: freeradius-devel@lists.freeradius.org
22     build_command_prepend: ./configure
23     build_command: make
24     branch_pattern: coverity_scan
25   apt:
26     sources:
27       - couchbase-precise
28     packages:
29       - autoconf
30       - build-essential
31       - debhelper
32       - devscripts
33       - dh-make
34       - doxygen
35       - fakeroot
36       - gdb
37       - graphviz
38       - lintian
39       - pbuilder
40       - python-dev
41       - quilt
42       - libruby
43       - ruby-dev
44       - libcollectdclient-dev
45       - firebird-dev
46       - freetds-dev
47       - libcap-dev
48       - libcouchbase2-libevent
49       - libcouchbase-dev
50       - libcurl4-openssl-dev
51       - libgdbm-dev
52       - libhiredis-dev
53       - libidn11-dev
54       - libiodbc2-dev libiodbc2
55       - libjson0
56       - libjson0-dev
57       - libkrb5-dev
58       - libldap2-dev
59       - libmemcached-dev
60       - libmysqlclient-dev
61       - libpam0g-dev
62       - libpcap-dev
63       - libpcre3-dev
64       - libperl-dev
65       - libpq-dev
66       - libreadline-dev
67       - libsnmp-dev
68       - libssl-dev
69       - libtalloc-dev
70       - libtalloc2-dbg
71       - libunbound-dev
72       - libwbclient-dev
73       - libykclient-dev
74       - libyubikey-dev
75 before_install:
76   - $CC --version
77 before_script:
78 # Configure the server
79   - if [ "${DO_BUILD}" = 'yes' ]; then CFLAGS="${BUILD_CFLAGS}" ./configure -C --enable-werror --prefix=$HOME/freeradius --with-shared-libs=$LIBS_SHARED --with-threads=$LIBS_OPTIONAL --with-udpfromto=$LIBS_OPTIONAL --with-openssl=$LIBS_OPTIONAL --with-pcre=$LIBS_OPTIONAL; fi
80   - if [ "${DO_BUILD}" = 'no' ]; then ./configure -C --without-modules; fi
81 # Build the server
82   - if [ "${DO_BUILD}" = 'yes' ]; then make -j8; fi
83 # Run CLANG analyzer if we're building with CLANG
84   - if [ "${DO_BUILD}" = 'yes' -a "${COVERITY_SCAN_BRANCH}" != 1 -a ${CC} = 'clang' ]; then make -j8 scan && [ "$(find build/plist/ -name *.html)" = '' ]; fi
85 script:
86   - if [ "${DO_BUILD}" = 'yes' -a "${COVERITY_SCAN_BRANCH}" != 1 ]; then make travis-test; fi
87 #  - if [ "${DO_BUILD}" = 'no' ]; then make deb; fi
88 # Build the doxygen documentation
89   - if [ "${DO_BUILD}" = 'no' ]; then cd doc/source; doxygen 3>&1 1>&2 2>&3 | grep -iv '^warning:' | tee doxygen_stderr.log && [ ! -n "$(cat doxygen_stderr.log)" ]; fi