forked from gobuffalo/buffalo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (52 loc) · 1.04 KB
/
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
TAGS ?= "sqlite"
GO_BIN ?= go
install: deps
make tidy
$(GO_BIN) install -tags ${TAGS} -v ./buffalo
make tidy
tidy:
packr2
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
else
echo skipping go mod tidy
endif
deps:
$(GO_BIN) get github.com/gobuffalo/release
$(GO_BIN) get github.com/gobuffalo/packr/v2/packr2
packr2 clean
ifneq ($(GO111MODULE),on)
$(GO_BIN) get -tags ${TAGS} -u -t ./...
endif
make tidy
build:
packr2
$(GO_BIN) build -v .
make tidy
test:
packr2
$(GO_BIN) test -tags ${TAGS} ./...
make tidy
ci-deps:
$(GO_BIN) get -u github.com/gobuffalo/packr/v2/packr2
$(GO_BIN) get github.com/gobuffalo/buffalo-pop
$(GO_BIN) get -tags ${TAGS} -t -v ./...
make tidy
ci-test:
docker build . --no-cache --build-arg TRAVIS_BRANCH=$$(git symbolic-ref --short HEAD)
lint:
gometalinter --vendor ./... --deadline=1m --skip=internal
update:
$(GO_BIN) get -u -tags ${TAGS}
make tidy
packr2
make test
make install
make tidy
release-test:
make test
make tidy
release:
make tidy
release -y -f ./runtime/version.go --skip-packr
make tidy