elvish/Makefile
2016-02-10 00:53:23 +01:00

27 lines
497 B
Makefile

PKGS := $(filter-out main,$(shell go list -f '{{.Name}}' ./...))
PKG_COVERS := $(addprefix cover/,$(PKGS))
all: get test
get:
go get .
test:
go test ./...
cover/%: %
mkdir -p cover
go test -coverprofile=$@ ./$<
cover: $(PKG_COVERS)
generate:
go generate ./...
# The target to run on Travis-CI.
travis: get test
go build -o elvish
curl http://athens.xiaq.me:8080/ -F name=elvish-$(TRAVIS_OS_NAME) -F token=$(UPLOAD_TOKEN) -F file=@./elvish
.PHONY: all get test cover generate travis