<commit_before>language: cpp
compiler:
- gcc
before_install:
- sudo apt-get install libboost-dev libboost-all-dev
- sudo pip install cpp-coveralls
script:
- cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug .
- make -j2
- make test
- mkdir gcov
- find CMakeFiles/ -name "*.gc*" -exec mv {} gcov/ \;
- gcov -d -o gcov gcov/*.gcda
- coveralls -n -E ".*\.cpp"
after_script:
- pushd ..
- wget http://sourceforge.net/projects/cppcheck/files/cppcheck/1.64/cppcheck-1.64.tar.bz2
- tar -xvf cppcheck-1.64.tar.bz2 
- cd cppcheck-1.64 
- make -j2 
- popd 
- ../cppcheck-1.64/cppcheck --enable=all --inconclusive -I include --inline-suppr --std=c++11 --platform=unix64 src/main.cpp src/chai*.cpp --template ' - __{severity}__: [{file}:{line}](../blob/TRAVIS_COMMIT/{file}#L{line}) {message} ({id})'  2>output
- sed -i "s/TRAVIS_COMMIT/${TRAVIS_COMMIT}/g" output && echo -n '{ "body": " ' > output.json
- echo -n `awk '{printf "%s\\\\n", $0;}' output` >> output.json && echo -n '"}' >> output.json 
- curl -H "Authorization: token ${TOKEN}" --request POST --data @output.json https://api.github.com/repos/ChaiScript/ChaiScript/commits/${TRAVIS_COMMIT}/comments
notifications:
  recipients:
  - <EMAIL><commit_msg>Only post comment if this is a pull request<commit_after>language: cpp
compiler:
- gcc
before_install:
- sudo apt-get install libboost-dev libboost-all-dev
- sudo pip install cpp-coveralls
script:
- cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug .
- make -j2
- make test
- mkdir gcov
- find CMakeFiles/ -name "*.gc*" -exec mv {} gcov/ \;
- gcov -d -o gcov gcov/*.gcda
- coveralls -n -E ".*\.cpp"
after_script:
- pushd ..
- wget http://sourceforge.net/projects/cppcheck/files/cppcheck/1.64/cppcheck-1.64.tar.bz2
- tar -xvf cppcheck-1.64.tar.bz2 
- cd cppcheck-1.64 
- make -j2 
- popd 
- ../cppcheck-1.64/cppcheck --enable=all --inconclusive -I include --inline-suppr --std=c++11 --platform=unix64 src/main.cpp src/chai*.cpp --template ' - __{severity}__: [{file}:{line}](../blob/TRAVIS_COMMIT/{file}#L{line}) {message} ({id})'  2>output
- sed -i "s/TRAVIS_COMMIT/${TRAVIS_COMMIT}/g" output 
- echo -n '{ "body": " ' > output.json
- echo -n `awk '{printf "%s\\\\n", $0;}' output` >> output.json 
- echo -n '"}' >> output.json 
- if [ "${TRAVIS_PULL_REQUEST}" = "true" ]; then curl -H "Authorization: token ${TOKEN}" --request POST --data @output.json https://api.github.com/repos/ChaiScript/ChaiScript/commits/${TRAVIS_COMMIT}/comments; fi
notifications:
  recipients:
  - <EMAIL>
{'fraction_non_alphanumeric': 0.19213973799126638, 'fraction_numerical': 0.019849146486701073, 'mean_word_length': 3.397905759162304, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 17, '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': '3972704', 'n_tokens_mistral': 1020, 'n_tokens_neox': 991, 'n_words': 216}