REL-0.10 Harden travis checks

This commit is contained in:
cytopia 2017-05-23 22:56:39 +02:00
parent 9c2c91f165
commit fdfc06d29d
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 26 additions and 2 deletions

@ -307,8 +307,27 @@ devilbox_start() {
enable_docker_mysql "${_set_mysql}"
enable_docker_pgsql "${_set_pgsql}"
# Run
docker-compose up -d
# Make sure to pull until success
ret=1
while [ "${ret}" != "0" ]; do
if ! docker-compose pull; then
ret=1
else
ret=0
fi
done
# Make sure to start until success
ret=1
while [ "${ret}" != "0" ]; do
if ! docker-compose up -d; then
ret=1
# Stop it and try again
devilbox_stop
else
ret=0
fi
done
# Wait for http to return 200
printf "wait "

@ -190,9 +190,14 @@ before_script:
- sudo /etc/init.d/mysql stop || true
- sudo /etc/init.d/postgresql stop || true
- sudo /etc/init.d/memcached stop || true
- sudo /etc/init.d/redis stop || true
- sudo /etc/init.d/mongodb stop || true
- sudo service mysql stop || true
- sudo service postgresql stop || true
- sudo service memcached stop || true
- sudo service redis stop || true
- sudo service mongodb stop || true
- netstat -tulpn