#!/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
   echo "Installing opsbro for TESTING (so have libs)"
   cd ..
   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

exit $?
#!/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
   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

exit $?
TEST travis is not start as root, so mus t install with sudo
Fix: TEST travis is not start as root, so mus t install with sudo
