mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
Add for Travis-CI
This commit is contained in:
11
Makefile
11
Makefile
@@ -11,7 +11,12 @@ SOURCES = $(shell find . -name '*.go' -o -name 'VERSION')
|
||||
VERSION = $(shell cat VERSION)
|
||||
OSARCH = "linux/amd64 darwin/amd64"
|
||||
|
||||
.DEFAULT_GOAL: $(BINARY)
|
||||
.DEFAULT_GOAL: test
|
||||
|
||||
.PHONY: test
|
||||
test: dev-deps
|
||||
@govendor test +local +program
|
||||
|
||||
$(BINARY): $(SOURCES)
|
||||
go build -o ${BINARY} -ldflags "-X main.Version=${VERSION}"
|
||||
|
||||
@@ -31,10 +36,6 @@ run: $(BINARY)
|
||||
install: dev-deps
|
||||
@govendor install +local +program
|
||||
|
||||
.PHONY: test
|
||||
test: dev-deps
|
||||
@govendor test +local +program
|
||||
|
||||
.PHONY: generate
|
||||
generate: dev-deps
|
||||
@govendor generate +local +program
|
||||
|
||||
Reference in New Issue
Block a user