run some tests

This commit is contained in:
ILoveYaToo 2020-04-16 00:55:12 -04:00
parent 9d725f7c5d
commit 224c659ea6
2 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,8 @@ test-docker-ubuntu:
- cd ubuntu
- docker load -i postal-ubuntu-container.tar
- docker-compose up -d
- docker-compose run postal run
- sleep 600
- docker inspect postal | jq '.[].State.Health'
after_script:
- cd ubuntu
- docker-compose rm -sfv

View File

@ -23,6 +23,11 @@ services:
- POSTAL_LNAME=Cat
- POSTAL_PASSWORD=SecretCatPassword
- POSTAL_EMAIL=myemail@catsworld.com
healthcheck:
test: curl -sS http://127.0.0.1:5000 || exit 1
interval: 5s
timeout: 10s
retries: 3
mysql:
image: mariadb:10
container_name: postal_mysql