<commit_before>#!/usr/bin/env bash

echo "##################### Launching TEST $TEST_SUITE"



# Travis: only need to run the installation once, it it not link to a specific python version. They don't need to use CPU for nothing ;)
if [ "$TEST_SUITE" == "PYTHON" ]; then
   ls ~/virtualenv/python2.7/bin/
   ~/virtualenv/python2.7/bin/deactivate
   ~/virtualenv/python2.7/bin/disable
   echo "Installing opsbro for TESTING (so have libs)"
   cd ..
   # NOTE: sudo because travis is under ubuntu
   sudo python setup.py install

   # NOTE: nosetests are hooking stdout and sys.paths, and so are not in real execution, this make too much troubles
   # with tests, so switching to a real world test
   test/launch_python_tests.sh
   exit $?
fi


echo "Test installations for SUITE  $TEST_SUITE"
# If not python, launch installations, and only a sub part if possible
./test_installation.sh
<commit_msg>Fix: TEST travia,s I do not want your virtualenv, I'm a system tool....<commit_after>#!/usr/bin/env bash

echo "##################### Launching TEST $TEST_SUITE"



# Travis: only need to run the installation once, it it not link to a specific python version. They don't need to use CPU for nothing ;)
if [ "$TEST_SUITE" == "PYTHON" ]; then
   # No more virtual env
   deactivate
   ls ~/virtualenv/python2.7/bin/
   echo "Installing opsbro for TESTING (so have libs)"
   cd ..
   # NOTE: sudo because travis is under ubuntu
   sudo python setup.py install

   # NOTE: nosetests are hooking stdout and sys.paths, and so are not in real execution, this make too much troubles
   # with tests, so switching to a real world test
   test/launch_python_tests.sh
   exit $?
fi


echo "Test installations for SUITE  $TEST_SUITE"
# If not python, launch installations, and only a sub part if possible
./test_installation.sh

{'fraction_non_alphanumeric': 0.10418963616317531, 'fraction_numerical': 0.004410143329658214, 'mean_word_length': 3.6419437340153453, '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': '1831176', 'n_tokens_mistral': 582, 'n_tokens_neox': 540, 'n_words': 233}