<commit_before>#!/bin/sh
# The script must run from the expected directory:
cd ${0%/*}
echo "running coveralls script from:"
pwd

# Piping directly from node was only sending one line for some reason
# so I create a file and then cat it which works
iojs ./node_modules/istanbul-harmony/lib/cli.js cover ./node_modules/mocha/bin/_mocha test/controllers
cat coverage/lcov.info | iojs ./node_modules/coveralls/bin/coveralls.js

# always exit success, build should not depend on coveralls
exit 0<commit_msg>Update coveralls script so that my shiny coverage badge updates to reflect my new models tests.<commit_after>#!/bin/sh
# The script must run from the expected directory:
cd ${0%/*}
echo "running coveralls script from:"
pwd

# Piping directly from node was only sending one line for some reason
# so I create a file and then cat it which works
iojs ./node_modules/istanbul-harmony/lib/cli.js cover ./node_modules/mocha/bin/_mocha test/controllers test/models
cat coverage/lcov.info | iojs ./node_modules/coveralls/bin/coveralls.js

# always exit success, build should not depend on coveralls
exit 0
{'fraction_non_alphanumeric': 0.08181818181818182, 'fraction_numerical': 0.0036363636363636364, 'mean_word_length': 4.532663316582915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3975434', 'n_tokens_mistral': 331, 'n_tokens_neox': 321, 'n_words': 135}