Run REST API and MaxCtrl unit tests

Install Docker when building on CentOS 7. This allows the REST API and
MaxCtrl unit tests to be run.
This commit is contained in:
Markus Mäkelä
2018-08-11 22:42:22 +03:00
parent f90b8cdafb
commit 1572e088bf
5 changed files with 50 additions and 14 deletions

View File

@ -84,7 +84,17 @@ do
docker exec -i $node mysql -umaxuser -pmaxpwd -e "select 1" >& /dev/null && break
sleep 1
done
echo "Done!"
docker exec -i $node mysql -umaxuser -pmaxpwd -e "select 1" >& /dev/null
if [ $? -ne 0 ]
then
echo "failed to start $node, error is:"
docker exec -i $node mysql -umaxuser -pmaxpwd -e "select 1"
exit 1
else
echo "Done!"
fi
done
# Go to the test directory