Skip to content

Commit

Permalink
Put source in root dir to make importing easier (this is ugly go for …
Browse files Browse the repository at this point in the history
…you)
  • Loading branch information
saschat committed Jun 5, 2018
1 parent 912091a commit b0f42f4
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Expand Up @@ -7,24 +7,24 @@ endif

all: build

build: src/mc/*.go
@GOPATH=$(CURDIR) $(GO) build mc
build: *.go
$(GO) build

test: build
@memcached -p 11289 & echo $$! > test.pids
@GOPATH=$(CURDIR) $(GO) test -test.short -v mc; ST=$?; \
@GOPATH=$(CURDIR) $(GO) test -test.short -v; ST=$?; \
cd $(CURDIR); cat test.pids | xargs kill; rm test.pids
@exit ${ST}

test-full: build
@memcached -p 11289 & echo $$! > test.pids
@GOPATH=$(CURDIR) GO15VENDOREXPERIMENT=1 $(GO) test -v mc; ST=$?; \
@GOPATH=$(CURDIR) GO15VENDOREXPERIMENT=1 $(GO) test -v; ST=$?; \
cd $(CURDIR); cat test.pids | xargs kill; rm test.pids
@exit ${ST}

bench: build
@memcached -p 11289 & echo $$! > test.pids
@GOPATH=$(CURDIR) $(GO) test -run "notests" -bench ".*" mc; ST=$?; \
@GOPATH=$(CURDIR) $(GO) test -run "notests" -bench ".*"; ST=$?; \
cd $(CURDIR); cat test.pids | xargs kill; rm test.pids
@exit ${ST}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b0f42f4

Please sign in to comment.