-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (32 loc) · 817 Bytes
/
Makefile
File metadata and controls
40 lines (32 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TAGS ?= "sqlite"
LDFLAGS ?= "-X ipop.Debug=true -X ipop.Color=true"
CURL_BIN ?= curl
GO_BIN ?= go
LINT_BIN ?= gometalinter
export PATH := ./bin:$(PATH)
install: deps
deps:
$(GO_BIN) get -tags ${TAGS} ./...
$(GO_BIN) get -tags ${TAGS} github.com/gobuffalo/pop/soda
$(CURL_BIN) -L https://git.io/vp6lP | sh
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
endif
test:
rm -f .test.sqlite
$(GO_BIN) test -tags ${TAGS} -ldflags ${LDFLAGS} ./...
ci-test:
rm -f .test.sqlite
$(GO_BIN) test -tags ${TAGS} -ldflags ${LDFLAGS} -race -coverprofile=coverage.txt -covermode=atomic ./...
lint:
$(LINT_BIN) --vendor ./... --deadline=1m --skip=internal
update:
$(GO_BIN) get -u -tags ${TAGS}
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
endif
make test
make install
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
endif