From 57877cbafa1a62d90f1db81796348a09e82f9ff7 Mon Sep 17 00:00:00 2001 From: James Mills Date: Mon, 31 Dec 2018 23:23:50 +1000 Subject: Migrate to Drone CI, Codecov and Go11Modules --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6fef3e6..12850e1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: dev build clean +.PHONY: dev build profile bench test clean all: dev @@ -6,8 +6,16 @@ dev: build ./gopherproxy -bind 127.0.0.1:8000 build: clean - go get ./... go build -o ./gopherproxy ./cmd/gopherproxy/main.go +profile: + @go test -cpuprofile cpu.prof -memprofile mem.prof -v -bench . + +bench: + @go test -v -bench . + +test: + @go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic . + clean: - rm -rf gopherproxy + @git clean -f -d -X -- cgit v1.2.3-70-g09d2