forked from gobuffalo/packr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (53 loc) · 989 Bytes
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
TAGS ?= "sqlite"
GO_BIN ?= go
install: deps
echo "installing packr v1"
packr
$(GO_BIN) install -v ./packr
tidy:
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
else
echo skipping go mod tidy
endif
deps:
rm -rf packrd
rm -rf v2/packrd
$(GO_BIN) get github.com/gobuffalo/release
$(GO_BIN) get -tags ${TAGS} -t ./...
$(GO_BIN) install -v ./packr
packr clean
make tidy
build: deps
packr
$(GO_BIN) build -v .
make tidy
test:
packr clean
$(GO_BIN) test -tags ${TAGS} ./...
packr clean
ci-deps:
rm -rf packrd
rm -rf v2/packrd
$(GO_BIN) get -tags ${TAGS} -t ./...
$(GO_BIN) install -v ./packr
packr clean
make tidy
ci-test:
$(GO_BIN) test -v -tags ${TAGS} -race ./...
make tidy
cd ./v2 && make ci-test
lint:
gometalinter --vendor ./... --deadline=1m --skip=internal
update:
$(GO_BIN) get -u -tags ${TAGS}
make tidy
packr
make test
make install
make tidy
release-test:
$(GO_BIN) test -tags ${TAGS} -race ./...
release:
release -y -f version.go
make tidy