language: c
sudo: required
dist: trusty
compiler: gcc
os: linux

env:
  global:
    - secure: "kfzqiIq1XhZ89XYsnqFhPKr5UWB+W4fYAYpOYOLgWMmqfjwqQTm1nN/A6TuFmdbTrzB6hLawsxIUrPS+QKs4TI8tTQMRZ8IZV4TIUQVa7SNQljwrKvnSu0fSoqpPrvXxjEjbTlvpo7X5EKCyCB0Xz6NaYVJIvE9bYnwCEAJw30k="

# actual compilation commands
script:
  - chmod +x .travis/build_maxscale.sh
  - .travis/build_maxscale.sh

#some dependencies
addons:
  apt:
    packages:
      - libaio-dev
      - libpcre3-dev
      - doxygen
      - pandoc
      - uuid
      - uuid-dev
      - libgnutls-dev
      - libgcrypt11-dev
  coverity_scan:
    project:
      name: "mariadb-corporation/MaxScale"
      description: "Build submitted via Travis CI"
      notification_email: coverity-maxscale@mariadb.com
    build_command_prepend: "make install; ./postinst"
    build_command:   "make"
    branch_pattern: coverity_scan
