add docker tests

This commit is contained in:
David Newhall II 2019-06-14 00:35:45 -07:00
parent 68ed21d6e2
commit bfdfe677dd
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,8 @@ addons:
- fakeroot
go:
- 1.12.x
services:
- docker
before_install:
- mkdir -p $GOPATH/bin
# Download the `dep` binary to bin folder in $GOPATH
@ -22,7 +24,10 @@ before_install:
install:
- rvm 2.0.0 do gem install --no-document fpm
- dep ensure
- docker build -t unifi-poller .
- docker run -d --name unifi-poller
script:
- docker ps -a | grep -q unifi-poller
- rvm 2.0.0 do make release
# get deploy key for golift/homebrew-mugs.
after_success:

View File

@ -147,7 +147,7 @@ lint:
# Checking lint.
golangci-lint run $(GOLANGCI_LINT_ARGS)
# Deprecated.
# Used for Homebrew only. Other disros can create packages.
install: man readme $(BINARY)
@echo - Done Building! -
@echo - Local installation with the Makefile is only supported on macOS.