Skip to content

Commit

Permalink
Merge pull request #5 from twexler/add-dockerfile
Browse files Browse the repository at this point in the history
Add dockerfile
  • Loading branch information
twexler committed Dec 15, 2016
2 parents 17d616c + a047ab5 commit b827dc5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
vendor/
.#*
*.coverprofile
coverage.html
coverage.html
gd-ddns-client
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
BIN_FILES=$(shell find . -name vendor -prune -o -not -name '*_test.go' -name '*.go' -print)
SRC_FILES=$(concat $(shell find . -name vendor -prune -o -name '*.go' -print) $(BIN_FILES))
get-deps: vendor

vendor:
glide install

test: overalls.coverprofile

overalls.coverprofile: get-deps
coverage: coverage.html

overalls.coverprofile: get-deps $(SRC_FILES)
overalls -project=github.com/twexler/gd-ddns-client

coverage.html: test
coverage.html: overalls.coverprofile
go tool cover -html=overalls.coverprofile -o=coverage.html

clean:
rm -rf vendor coverage.out coverage.html
rm -rf vendor coverage.html gd-ddns-client

gd-ddns-client: $(BIN_FILES)
go build cmd/gd-ddns-client.go

all: clean test

.PHONY: clean get-deps test
.PHONY: clean coverage docker-image get-deps test
1 change: 1 addition & 0 deletions cmd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM golang:onbuild

0 comments on commit b827dc5

Please sign in to comment.