add docker tests
This commit is contained in:
parent
68ed21d6e2
commit
bfdfe677dd
|
|
@ -10,6 +10,8 @@ addons:
|
||||||
- fakeroot
|
- fakeroot
|
||||||
go:
|
go:
|
||||||
- 1.12.x
|
- 1.12.x
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
before_install:
|
before_install:
|
||||||
- mkdir -p $GOPATH/bin
|
- mkdir -p $GOPATH/bin
|
||||||
# Download the `dep` binary to bin folder in $GOPATH
|
# Download the `dep` binary to bin folder in $GOPATH
|
||||||
|
|
@ -22,7 +24,10 @@ before_install:
|
||||||
install:
|
install:
|
||||||
- rvm 2.0.0 do gem install --no-document fpm
|
- rvm 2.0.0 do gem install --no-document fpm
|
||||||
- dep ensure
|
- dep ensure
|
||||||
|
- docker build -t unifi-poller .
|
||||||
|
- docker run -d --name unifi-poller
|
||||||
script:
|
script:
|
||||||
|
- docker ps -a | grep -q unifi-poller
|
||||||
- rvm 2.0.0 do make release
|
- rvm 2.0.0 do make release
|
||||||
# get deploy key for golift/homebrew-mugs.
|
# get deploy key for golift/homebrew-mugs.
|
||||||
after_success:
|
after_success:
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ lint:
|
||||||
# Checking lint.
|
# Checking lint.
|
||||||
golangci-lint run $(GOLANGCI_LINT_ARGS)
|
golangci-lint run $(GOLANGCI_LINT_ARGS)
|
||||||
|
|
||||||
# Deprecated.
|
# Used for Homebrew only. Other disros can create packages.
|
||||||
install: man readme $(BINARY)
|
install: man readme $(BINARY)
|
||||||
@echo - Done Building! -
|
@echo - Done Building! -
|
||||||
@echo - Local installation with the Makefile is only supported on macOS.
|
@echo - Local installation with the Makefile is only supported on macOS.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue