<commit_before>#!/bin/bash

set -e -o pipefail

# Install ansible dependencies
cd /openprescribing/ansible
apt-get update && apt-get -qq -y install locales curl python
curl https://bootstrap.pypa.io/get-pip.py | python
/usr/local/bin/pip install -r vagrant_requirements.txt

# Set up the locale we use in postgres
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen

# Run the playbook
/usr/local/bin/ansible-playbook -v travis.yml

# Do minimal database-connection test
su -c 'SKIP_NPM_BUILD=1 /openprescribing/venv/bin/python /openprescribing/openprescribing/manage.py test frontend.tests.test_models.SearchBookmarkTestCase' vagrant<commit_msg>Don't be verbose when testing ansible (#1103)<commit_after>#!/bin/bash

set -e -o pipefail

# Install ansible dependencies
cd /openprescribing/ansible
apt-get update && apt-get -qq -y install locales curl python
curl https://bootstrap.pypa.io/get-pip.py | python
/usr/local/bin/pip install -r vagrant_requirements.txt

# Set up the locale we use in postgres
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen

# Run the playbook
/usr/local/bin/ansible-playbook travis.yml

# Do minimal database-connection test
su -c 'SKIP_NPM_BUILD=1 /openprescribing/venv/bin/python /openprescribing/openprescribing/manage.py test frontend.tests.test_models.SearchBookmarkTestCase' vagrant
{'fraction_non_alphanumeric': 0.12249443207126949, 'fraction_numerical': 0.007423904974016332, 'mean_word_length': 4.286274509803921, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1646980', 'n_tokens_mistral': 503, 'n_tokens_neox': 461, 'n_words': 120}