aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2018-12-31 23:23:50 +1000
committerJames Mills <prologic@shortcircuit.net.au>2018-12-31 23:24:17 +1000
commit57877cbafa1a62d90f1db81796348a09e82f9ff7 (patch)
tree7b111deb903644e3d55caf1355595df76224eb4e /Makefile
parentAdd related projects to README (diff)
downloadgopherproxy-57877cbafa1a62d90f1db81796348a09e82f9ff7.tar.gz
gopherproxy-57877cbafa1a62d90f1db81796348a09e82f9ff7.tar.bz2
gopherproxy-57877cbafa1a62d90f1db81796348a09e82f9ff7.zip
Migrate to Drone CI, Codecov and Go11Modules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6fef3e6..12850e1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
1.PHONY: dev build clean 1.PHONY: dev build profile bench test clean
2 2
3all: dev 3all: dev
4 4
@@ -6,8 +6,16 @@ dev: build
6 ./gopherproxy -bind 127.0.0.1:8000 6 ./gopherproxy -bind 127.0.0.1:8000
7 7
8build: clean 8build: clean
9 go get ./...
10 go build -o ./gopherproxy ./cmd/gopherproxy/main.go 9 go build -o ./gopherproxy ./cmd/gopherproxy/main.go
11 10
11profile:
12 @go test -cpuprofile cpu.prof -memprofile mem.prof -v -bench .
13
14bench:
15 @go test -v -bench .
16
17test:
18 @go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic .
19
12clean: 20clean:
13 rm -rf gopherproxy 21 @git clean -f -d -X