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:
@ -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
|
||||
|
Reference in New Issue
Block a user