From bfdfe677ddae819293aaaf371c75d1757ace152c Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Fri, 14 Jun 2019 00:35:45 -0700 Subject: [PATCH] add docker tests --- integrations/promunifi/.travis.yml | 5 +++++ integrations/promunifi/Makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/integrations/promunifi/.travis.yml b/integrations/promunifi/.travis.yml index 79b654c8..2d219abb 100644 --- a/integrations/promunifi/.travis.yml +++ b/integrations/promunifi/.travis.yml @@ -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: diff --git a/integrations/promunifi/Makefile b/integrations/promunifi/Makefile index ddbe1ec8..c4bd78ad 100644 --- a/integrations/promunifi/Makefile +++ b/integrations/promunifi/Makefile @@ -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.