language: c
sudo: required
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential libtool autoconf automake
- sudo apt-get install -qq libgmp3-dev gengetopt libpcap-dev flex byacc pkg-config
  libhiredis-dev libunistring-dev
- sudo apt-get install libsasl2-dev
- sudo pip install sh
- python ./scripts/install_cmake.py
- python ./scripts/install_jsonc.py
- python ./scripts/install_mongo.py
- export PATH=/opt/bin:$PATH
- pkg-config --variable pc_path pkg-config
- pkg-config --list-all
script: cmake -DENABLE_DEVELOPMENT=ON -DWITH_JSON=ON -DWITH_REDIS=ON -DWITH_MONGO=ON
  . && make
compiler: clang
notifications:
  email:
  - zmap-devel@umich.edu
  slack:
    secure: gLiX4zUhlYMJ0l7kJlb5Wf5CmAynj+WQufThSBPP7XlLZddl6Vql72sJuqwl1ZV75xEsqP05QDulBMJc9AaED7BP53vhngHHgWLwjt026ne5sbA/s98U735jT/qwwFvKWBCYPZ5BQdTmJO3KCyuBJH+tQnptiolog9abksG1WZk=

language: c
os: linux
sudo: required
dist: trusty
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq build-essential cmake libgmp3-dev gengetopt
    libpcap-dev flex byacc libjson-c-dev pkg-config libunistring-dev
    libsasl2-dev python-dev python-pip libhiredis-dev
  - pip install --user sh
  - python ./scripts/install_mongo.py
  - export PATH=/opt/bin:$PATH
matrix: 
  include:
    - os: osx
      before_install:
        - brew update
        - brew install gengetopt byacc libdnet libunistring
          mongo-c hiredis
script: cmake -DENABLE_DEVELOPMENT=ON -DWITH_JSON=ON -DWITH_REDIS=ON -DWITH_MONGO=ON
  . && make
compiler: clang
notifications:
  email:
  - zmap-devel@umich.edu
  slack:
    secure: gLiX4zUhlYMJ0l7kJlb5Wf5CmAynj+WQufThSBPP7XlLZddl6Vql72sJuqwl1ZV75xEsqP05QDulBMJc9AaED7BP53vhngHHgWLwjt026ne5sbA/s98U735jT/qwwFvKWBCYPZ5BQdTmJO3KCyuBJH+tQnptiolog9abksG1WZk=

Update TravsCI to Trusty, also build on OS X
Update TravsCI to Trusty, also build on OS X

TravisCI now builds on Ubuntu 14.04 LTS and on OS X. Both environments
need to have a successful build in order to pass.
