<commit_before>language: cpp

branches:
  except:
    - /^feature.*$/

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: "<KEY>
  matrix:
    - BUILD=gcc
    - BUILD=clang

before_install:
  - sudo pip install cpp-coveralls

install:
  - sudo apt-get install -qq cmake libboost-dev libboost-test-dev || /bin/true

before_script:
  - mkdir build
  - cd build

script:
  - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then
      case ${BUILD} in
        gcc)
          cmake ../ &&
          make VERBOSE=1 &&
          make test
          ;;
        clang)
          cmake -DCMAKE_TOOLCHAIN_FILE=../src/linux/cmake/clang.cmake ../  &&
          make &&
          make test
          ;;
      esac ;
    fi

after_success:
  - coveralls --verbose --root .. --build-root . --exclude src/json/ --exclude src/tests/ --exclude src/linux/epoll/tests/ --exclude build/CMakeFiles/CompilerIdC/ --exclude build/CMakeFiles/CompilerIdCXX/ --gcov-options '\-lp'

addons:
  coverity_scan:
    project:
      name: "gatzka/cjet"
      description: "Build submitted via Travis CI"
    build_script_url: https://raw.githubusercontent.com/gatzka/cjet/coverity_scan/scripts/travis/travisci_build_coverity_scan.sh
    notification_email: <EMAIL>
    build_command_prepend: "cmake ../"
    build_command: "make"<commit_msg>Don't build verbose.<commit_after>language: cpp

branches:
  except:
    - /^feature.*$/

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: "<KEY>
  matrix:
    - BUILD=gcc
    - BUILD=clang

before_install:
  - sudo pip install cpp-coveralls

install:
  - sudo apt-get install -qq cmake libboost-dev libboost-test-dev || /bin/true

before_script:
  - mkdir build
  - cd build

script:
  - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then
      case ${BUILD} in
        gcc)
          cmake ../ &&
          make &&
          make test
          ;;
        clang)
          cmake -DCMAKE_TOOLCHAIN_FILE=../src/linux/cmake/clang.cmake ../  &&
          make &&
          make test
          ;;
      esac ;
    fi

after_success:
  - coveralls --verbose --root .. --build-root . --exclude src/json/ --exclude src/tests/ --exclude src/linux/epoll/tests/ --exclude build/CMakeFiles/CompilerIdC/ --exclude build/CMakeFiles/CompilerIdCXX/ --gcov-options '\-lp'

addons:
  coverity_scan:
    project:
      name: "gatzka/cjet"
      description: "Build submitted via Travis CI"
    build_script_url: https://raw.githubusercontent.com/gatzka/cjet/coverity_scan/scripts/travis/travisci_build_coverity_scan.sh
    notification_email: <EMAIL>
    build_command_prepend: "cmake ../"
    build_command: "make"
{'fraction_non_alphanumeric': 0.12019739161085653, 'fraction_numerical': 0.0010574550581600281, 'mean_word_length': 2.3585798816568047, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4499013', 'n_tokens_mistral': 995, 'n_tokens_neox': 956, 'n_words': 216}