Expand the matrix to build with and without shared libs
[freeradius.git] / .travis.yml
1 language: c
2 compiler:
3   - clang
4   - gcc
5 before_install:
6   - sudo apt-get update -qq
7   - sudo apt-get install -qq libtalloc-dev libssl-dev
8   - sudo apt-get install -qq gdb
9   - sudo apt-get install -qq build-essential autoconf dh-make debhelper devscripts fakeroot lintian pbuilder quilt
10   - sudo apt-get install -qq -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" libmysqlclient-dev
11   - sudo apt-get install -qq libkrb5-dev libgdbm-dev libhiredis-dev libldap2-dev libpam0g-dev libpcap-dev libpcre3-dev libperl-dev
12   - sudo apt-get install -qq libpq-dev libreadline-dev libsnmp-dev 
13   - sudo apt-get install -qq libiodbc2 libiodbc2-dev
14   - sudo apt-get install -qq libidn11-dev libyubikey-dev libykclient-dev
15   - sudo apt-get install -qq firebird-dev freetds-dev python-dev ruby-dev
16 env:
17   - LIBS_OPTIONAL=no
18   - LIBS_OPTIONAL=yes
19   - LIBS_SHARED=no
20   - LIBS_SHARED=yes
21 before_script:
22   - ./configure -C --enable-werror --prefix=$HOME/travis --with-shared-libs=$LIBS_SHARED --with-threads=$LIBS_OPTIONAL --with-udpfromto=$LIBS_OPTIONAL --with-shared-libs=$LIBS_OPTIONAL --with-udpfromto=$LIBS_OPTIONAL --with-openssl=$LIBS_OPTIONAL
23   - make
24 script: make travis-test