# travis configuration file
# Copyright 2018 Ilya Shipitsin <chipitsine@gmail.com>
#                Nicolas Mora <mail@babelouest.org>
sudo: required
language: c
addons:
  apt:
    packages: [ libjansson-dev, check, libsubunit-dev, cppcheck ]
matrix:
  include:
    - os: linux
      compiler: gcc
    - os: linux
      compiler: clang
    - env: LABEL=cppcheck
      os: linux
      script:
        - cppcheck --force --enable=warning,missingInclude --error-exitcode=1 . >build.log 2>&1 || (cat build.log && exit 1)
script:
  - mkdir build && cd build
  - cmake -DBUILD_YDER_TESTING=on -DWITH_JOURNALD=off ..
  - make test package
  - sudo make install
  - cd ../
  - make Y_DISABLE_JOURNALD=1
  - make check

# travis configuration file
# Copyright 2018 Ilya Shipitsin <chipitsine@gmail.com>
#                Nicolas Mora <mail@babelouest.org>
sudo: required
language: c
addons:
  apt:
    packages: [ libjansson-dev, check, libsubunit-dev, cppcheck ]
matrix:
  include:
    - os: linux
      compiler: gcc
    - os: linux
      compiler: clang
    - env: LABEL=cppcheck
      os: linux
      script:
        - cppcheck --force --enable=warning,missingInclude --error-exitcode=1 . >build.log 2>&1 || (cat build.log && exit 1)
    - os: osx
      addons:
        homebrew:
          packages:
          - check
          update: true
      script:
        - mkdir build && cd build
        - cmake -DBUILD_YDER_TESTING=on -DWITH_JOURNALD=off ..
        - make test
script:
  - mkdir build && cd build
  - cmake -DBUILD_YDER_TESTING=on -DWITH_JOURNALD=off ..
  - make test package
  - sudo make install
  - cd ../
  - make Y_DISABLE_JOURNALD=1
  - make check

Test MacOS build on Travis
Test MacOS build on Travis

Can't build deb package there
