language: c
compiler:
  - gcc
  - clang
os:
  - linux
  - osx
branches:
  only:
    - master
script: cmake . && make

env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "dOIHA+29WzdS1GPm2A/2osTIm4GAGP+OCP/CoYN8gZ4W9yxHKY+noJevDtPw+KDQ5wgBKEcqPnLA1gVI6PeRLdxjHpWULzaH9GZsjktK2YNJJkO2kw2tBrXp09ak4jczokaYcdOM1pfXFbTPYRpDHyd4nS8QvFM4nev7xg87zvU="

addons:
  coverity_scan:
    project:
      name: "CESNET/libyang"
      description: "Build submitted via Travis CI"
    notification_email: rkrejci@cesnet.cz
    build_command_prepend: "cmake .; make clean"
    build_command:   "make -j 1"
    branch_pattern: master


language: c

compiler:
  - clang

os:
  - linux

branches:
  only:
    - master

env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "dOIHA+29WzdS1GPm2A/2osTIm4GAGP+OCP/CoYN8gZ4W9yxHKY+noJevDtPw+KDQ5wgBKEcqPnLA1gVI6PeRLdxjHpWULzaH9GZsjktK2YNJJkO2kw2tBrXp09ak4jczokaYcdOM1pfXFbTPYRpDHyd4nS8QvFM4nev7xg87zvU="

addons:
  coverity_scan:
    project:
      name: "CESNET/libyang"
    notification_email: rkrejci@cesnet.cz
    build_command_prepend: "cmake .; make clean"
    build_command:   "make"
    branch_pattern: master

script: cmake . && make


BUILD BUGFIX forcing multiple coverity scans via Travis CI
BUILD BUGFIX forcing multiple coverity scans via Travis CI

There is currently no simple way to specify that Coverity scan should be run
only once when we have multiple builds in Travis CI. Therefore, we have to
stop building using multiple compilers (we selected clang).
