<commit_before>language: cpp
compiler:
  - gcc
env:
  matrix:
    - CXX="g++-4.6" CC="gcc-4.6" GCOV="gcov-4.6"
    - CXX="g++-4.8" CC="gcc-4.8" GCOV="gcov-4.8"
    - CXX="g++-5.1" CC="gcc-5.1" GCOV="gcov-5.1" COVERALLS=1 CPPCHECK=1

  global:
    - secure: <KEY>
    # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
    #   via the "travis encrypt" command using the project repo's public key
    - secure: "<KEY>

before_install:
  - sudo pip install cpp-coveralls
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  - sudo apt-get update
  - if [ "$CXX" = "g++-4.8" ]; then sudo apt-get install -qq g++-4.8; fi
  - if [ "$CXX" = "g++-5.1" ]; then sudo apt-get install -qq g++-5.1; fi

script: 
  - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug . ; fi
  - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make -j2 ; fi
  - make test
  - if [ ${COVERALLS} = 1 ]; then coveralls -e "unittests/catch.hpp" -E ".*\.cpp"  --gcov $GCOV ; fi

after_script:
  - if [ ${CPPCHECK} = 1 ]; then contrib/codeanalysis/runcppcheck.sh ; fi

notifications:
  email:
    recipients:
      - <EMAIL>
    on_success: always
    on_failure: always
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/4be9a2720eaa1bb2a6c9
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: false     # default: false

addons:
  coverity_scan:
    project:
      name: "ChaiScript/ChaiScript"
      description: "Build submitted via Travis CI"
    notification_email: <EMAIL>
    build_command_prepend: "cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug . "
    build_command:   "cmake --build . --target chai"
    branch_pattern: coverity_scan


<commit_msg>Further travis / coverity cleanups<commit_after>language: cpp
compiler:
  - gcc
env:
  matrix:
    - GCC_VER="4.8"
    - GCC_VER="4.6"
    - GCC_VER="5.1"

  global:
    - secure: <KEY>
    # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
    #   via the "travis encrypt" command using the project repo's public key
    - secure: "<KEY>

before_install:
  - if [ "$GCC_VER" = "4.6" ]; export CXX="g++-4.6" CC="gcc-4.6" GCOV="gcov-4.6"; fi
  - if [ "$GCC_VER" = "4.8" ]; export CXX="g++-4.8" CC="gcc-4.8" GCOV="gcov-4.8"; fi
  - if [ "$GCC_VER" = "5.1" ]; export CXX="g++-5.1" CC="gcc-5.1" GCOV="gcov-5.1" COVERALLS=1 CPPCHECK=1; fi
  - sudo pip install cpp-coveralls
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  - sudo apt-get update
  - if [ "$GCC_VER" = "4.8" ]; then sudo apt-get install -qq g++-4.8; fi
  - if [ "$GCC_VER" = "5.1" ]; then sudo apt-get install -qq g++-5.1; fi

script: 
  - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug . ; fi
  - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make -j2 ; fi
  - make test
  - if [ ${COVERALLS} = 1 ]; then coveralls -e "unittests/catch.hpp" -E ".*\.cpp"  --gcov $GCOV ; fi

after_script:
  - if [ ${CPPCHECK} = 1 ]; then contrib/codeanalysis/runcppcheck.sh ; fi

notifications:
  email:
    recipients:
      - <EMAIL>
    on_success: always
    on_failure: always
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/4be9a2720eaa1bb2a6c9
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: false     # default: false

addons:
  coverity_scan:
    project:
      name: "ChaiScript/ChaiScript"
      description: "Build submitted via Travis CI"
    notification_email: <EMAIL>
    build_command_prepend: "cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug . "
    build_command:   "cmake --build . -- -j2"
    branch_pattern: coverity_scan



{'fraction_non_alphanumeric': 0.15181347150259067, 'fraction_numerical': 0.025647668393782384, 'mean_word_length': 3.038702928870293, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '42901', 'n_tokens_mistral': 1584, 'n_tokens_neox': 1520, 'n_words': 350}