language: c

dist: xenial

addons:
  apt:
    sources:
    - sourceline: 'ppa:xapian-backports/ppa'
    - sourceline: 'ppa:notmuch/notmuch'
    packages:
    - dtach
    - libxapian-dev
    - libgmime-3.0-dev
    - libtalloc-dev
    - python3-sphinx
    - python3-cffi
    - python3-pytest
    - python3-setuptools
    - libpython3-all-dev
    - gpgsm

script:
  - ./configure
  - make download-test-databases
  - make test

notifications:
  irc:
    channels:
      - "chat.freenode.net#notmuch"
    on_success: change
