<commit_before>set -e # Exit with nonzero exit code if anything fails

SOURCE_BRANCH="master"

# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then
    echo "Skipping deploy; just doing a build."
    exit 0
fi

# Clean
rm -rf dist-prod
rm -rf doc

# Run our compile script and deploy dist directory into th GH-PAGES branch
demo="gulp build:demo && node_modules/.bin/gh-pages -d demo/dist --repo https://rtrompier:${GITHUB_TOKEN}@github.com/DSI-HUG/dejajs-components.git > demo.log"
# Run our compile script and deploy doc directory into th GH-PAGES branch
doc="gulp build:doc && node_modules/.bin/gh-pages -d doc --repo https://rtrompier:${GITHUB_TOKEN}@github.com/DSI-HUG/dejajs-doc.git > doc.log"
# Deploy dist directory into th GH-PAGES branch
test="node_modules/.bin/gh-pages -d coverage --repo https://rtrompier:${GITHUB_TOKEN}@github.com/DSI-HUG/dejajs-test.git > coverage.log"

node_modules/.bin/concurrently -p "[{name}]" -n "demo,doc,test" "$demo" "$doc" "$test"

cat demo.log && rm demo.log
cat doc.log && rm doc.log
cat coverage.log && rm coverage.log<commit_msg>quiet(Deploy): Config for demo, doc and coverage<commit_after>set -e # Exit with nonzero exit code if anything fails

SOURCE_BRANCH="master"

# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then
    echo "Skipping deploy; just doing a build."
    exit 0
fi

# Run our compile script and deploy dist directory into th GH-PAGES branch
rm -rf demo/dist
gulp build:demo
node_modules/.bin/gh-pages -d demo/dist --repo https://rtrompier:${GITHUB_TOKEN}@github.com/DSI-HUG/dejajs-components.git

# Run our compile script and deploy doc directory into th GH-PAGES branch
rm -rf doc
gulp build:doc
node_modules/.bin/gh-pages -d doc --repo https://rtrompier:${GITHUB_TOKEN}@github.com/DSI-HUG/dejajs-doc.git

# Deploy dist directory into th GH-PAGES branch
rm -rf coverage
node_modules/.bin/gh-pages -d coverage --repo https://rtrompier:${GITHUB_TOKEN}@github.com/DSI-HUG/dejajs-test.git

{'fraction_non_alphanumeric': 0.1265880217785844, 'fraction_numerical': 0.0009074410163339383, 'mean_word_length': 4.378048780487805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 6, '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': '6055631', 'n_tokens_mistral': 784, 'n_tokens_neox': 768, 'n_words': 230}