language: c
os:
  - linux
  - osx
compiler:
  - gcc
  - clang
env:
  - CONFIGURE_ARGS="" EXTRA="libldap2-dev libykpers-1-dev libnet-ldap-server-perl"
  - CONFIGURE_ARGS="--without-ldap" EXTRA="libykpers-1-dev"
  - CONFIGURE_ARGS="--without-cr" EXTRA="libldap2-dev libnet-ldap-server-perl"
  - CONFIGURE_ARGS="--without-ldap --without-cr"
script: tests/aux/build-and-test.sh
matrix:
  include:
    - compiler: gcc
      os: linux
      env: COVERAGE="--enable-coverage" EXTRA="libldap2-dev libykpers-1-dev libnet-ldap-server-perl lcov"