dist: trusty
language: c

script:
 - ./configure --pam=1 --ldap=1
 - make check
 - dpkg-buildpackage -uc -us -b

env:
  global:
   - PKG_CONFIG_PATH=$HOME/otr/usr/lib/pkgconfig/
   - LD_LIBRARY_PATH=$HOME/otr/usr/lib/
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "MO6hy2cRxR02A0nSenfQFyPFpepxorJ+XgNkq2JS7LtI6tcwYRR0alvunIPJXam1/OUKxoFsBJLS1nCJTvEUXFCOvoTSAoMiePTBUEg2zfzcTb5k+cqtcOUznCXHNmXAwrqriP4vkG+57ijO9Ojz2r9LijcvjtFDRFJQY9Rcs38="

addons:
  apt:
    packages:
    - libevent-dev
    - libpurple-dev
    - check
    - libpam0g-dev
    - libldap2-dev
    - fakeroot
    - debhelper
    - devscripts
    - libotr5-dev
  coverity_scan:
    project:
      name: "bitlbee/bitlbee"
      description: "An IRC to other chat networks gateway"
    notification_email: dx@dxzone.com.ar
    build_command_prepend: ./configure --otr=1 --debug=1 --pam=1 --ldap=1
    build_command: make
    branch_pattern: coverity_scan

notifications:
  email: false
