Print logs whilst sleeping in test

This commit is contained in:
Joe Groocock 2017-12-15 16:48:29 +00:00
parent b6a19ca720
commit 2b35049cc0
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -21,13 +21,13 @@ pipeline:
- apk add --no-cache curl xmlstarlet grep
- export CUR_VERSION="$(cat .plex_version)"
- CON_NAME=$(docker run --rm -d plex-dev)
- timeout -t 15 docker logs $$CON_NAME &
- sleep 10 # Wait for plex to start!
- docker logs $$CON_NAME
- curl -sSL $(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $$CON_NAME):32400/identity
| tee /dev/stderr
| xmlstarlet sel -t -v "/MediaContainer/@version"
| grep -qw $CUR_VERSION
- docker kill $$CON_NAME # Not really needed, but keeps things quick
- docker kill $$CON_NAME
publish:
image: docker