add docker tests
This commit is contained in:
parent
68ed21d6e2
commit
bfdfe677dd
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue