Slightly better test?

This commit is contained in:
David Newhall II 2019-06-14 00:47:59 -07:00
parent 88e30e19cb
commit faf64d940e
1 changed files with 2 additions and 1 deletions

View File

@ -25,10 +25,11 @@ install:
- rvm 2.0.0 do gem install --no-document fpm
- dep ensure
- docker build -t unifi-poller .
- docker run -d --name unifi-poller unifi-poller
- docker run -d --name unifi-poller unifi-poller | tee docker_id
script:
# Once we figure out how to keep it running we can remove the -a in ps args.
- docker ps -a | grep -q unifi-poller
- docker logs $(<docker_id) 2>&1 | grep -Eq "Loaded Configuration[:] /etc/unifi-poller/up.conf"
- rvm 2.0.0 do make release
# get deploy key for golift/homebrew-mugs.
after_success: