<commit_before>language: cpp

compiler:
  - gcc
  - clang

env:
  - BUILD_TYPE=Debug
  - BUILD_TYPE=Release

install:
  - sudo pip install cpp-coveralls --use-mirrors

before_script:
  - mkdir build && cd build
  - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=on -DBUILD_TESTS_WITH_EIGEN=on ..

script:
  - make && ctest -V

after_success:
  - if [ "$CXX" == "g++" ] && [ "$BUILD_TYPE" == "Debug" ]; then coveralls --root .. -E ".*external.*" -E ".*CMakeFiles.*" -E ".*test/.*.cpp.*"; fi<commit_msg>Add Coverity back into Travis script.<commit_after>language: cpp

compiler:
  - gcc
  - clang

env:
  global:
    - secure: "<KEY>
  matrix:
    - BUILD_TYPE=Debug
    - BUILD_TYPE=Release

addons:
  coverity_scan:
    project:
      name: "kartikkumar/sml"
    notification_email: <EMAIL>
    build_command_prepend: "mkdir build && cd build; cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=on -DBUILD_TESTS_WITH_EIGEN=on .."
    build_command:   "make"
    branch_pattern: coverity_scan

install:
  - if [ "$CXX" == "g++" ] && [ "$BUILD_TYPE" == "Debug" ]; sudo pip install cpp-coveralls --use-mirrors; fi

before_script:
  - mkdir build && cd build
  - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=on -DBUILD_TESTS_WITH_EIGEN=on ..

script:
  - make && ctest -V

after_success:
  - if [ "$CXX" == "g++" ] && [ "$BUILD_TYPE" == "Debug" ]; then coveralls --root .. -E ".*external.*" -E ".*CMakeFiles.*" -E ".*test/.*.cpp.*"; fi
{'fraction_non_alphanumeric': 0.17002081887578072, 'fraction_numerical': 0.0, 'mean_word_length': 3.253687315634218, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '5721626', 'n_tokens_mistral': 571, 'n_tokens_neox': 554, 'n_words': 120}