<commit_before>#...............................................................................
#
#  This file is part of the Jancy toolkit.
#
#  Jancy is distributed under the MIT license.
#  For details see accompanying license.txt file,
#  the public copy of which is also available at:
#  http://tibbo.com/downloads/archive/jancy/license.txt
#
#...............................................................................

if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CC" == "clang" ]; then
	return # lcov doesn't work with clang on ubuntu out-of-the-box
fi

if [ "$BUILD_CONFIGURATION" != "Debug" ]; then
	return # coverage should be collected without optimizations
fi

lcov --capture --directory . --no-external --output-file coverage.info
lcov --remove coverage.info '*/axl/*' '*/graco/*' --output-file coverage.info
lcov --list coverage.info

curl -s https://codecov.io/bash | bash
<commit_msg>[travis] excluded llvm headers from coverage<commit_after>#...............................................................................
#
#  This file is part of the Jancy toolkit.
#
#  Jancy is distributed under the MIT license.
#  For details see accompanying license.txt file,
#  the public copy of which is also available at:
#  http://tibbo.com/downloads/archive/jancy/license.txt
#
#...............................................................................

if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CC" == "clang" ]; then
	return # lcov doesn't work with clang on ubuntu out-of-the-box
fi

if [ "$BUILD_CONFIGURATION" != "Debug" ]; then
	return # coverage should be collected without optimizations
fi

lcov --capture --directory . --no-external --output-file coverage.info
lcov --remove coverage.info '*/llvm/*' '*/axl/*' '*/graco/*' --output-file coverage.info
lcov --list coverage.info

curl -s https://codecov.io/bash | bash

{'fraction_non_alphanumeric': 0.288961038961039, 'fraction_numerical': 0.0, 'mean_word_length': 1.875583203732504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5029837', 'n_tokens_mistral': 518, 'n_tokens_neox': 502, 'n_words': 166}